Repository navigation
Conversation
@vitejs/devtools
@vitejs/devtools-kit
@vitejs/devtools-oxc
@vitejs/devtools-rolldown
@vitejs/devtools-vite
@vitejs/devtools-vitest
commit: |
Let module metrics opt in to displaying zero-byte sizes. Preserve the source size in the duration-only cache entry so reopening an unchanged module shows the same size on both sides.
Read ModuleRenderedReady into the session cache and use its per-module bytes for comparison rows and totals. Older logs keep an unavailable size while module details continue to show transform measurements.
SaKaNa-Y
marked this pull request as ready for review
November 14, 2026 06:04
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
When a chunk grows between builds, the Modules tab helps developers find which modules changed. It previously compared the size reported by the last transform hook. A module can appear in the output without a transform measurement, and treating a missing value as zero can report growth even when the source stays the same.
Compare the bytes Rolldown records for each module in
ModuleRenderedReady. Rolldown measures these bytes after tree-shaking and before chunk minification, summed across all output chunks that contain the module. The session cache now stores these measurements. The Modules tab labels the total Rendered Size.Logs without the event show Unavailable for rendered size, even when they contain transform measurements. Module detail and Detailed List still show transform sizes, including a final zero after reopening the session.
Follow-up to #615 and #601.
Evidence
Merge Danger
Door: two-way
Blast Radius: Rolldown session comparisons and derived caches.
The cache version change rebuilds derived entries from the original logs. A rendered size delta can differ from the final chunk size delta because whole-chunk minification happens later.