Skip to content

fix(rolldown): match unnamed chunks across compared sessions - #614

Merged
webfansplz merged 1 commit into
mainfrom
fix/compare-unnamed-chunk-matching
Oct 20, 2026
Merged

webfansplz merged 1 commit into
mainfrom
fix/compare-unnamed-chunk-matching

Conversation

@webfansplz

Copy link
Copy Markdown
Member

Session Compare matched chunks between two builds by name. Unnamed chunks get a guessed name from guessChunkName ([<first module>_<module count>]). The module count is part of that name, so adding or removing a single module renamed the chunk. Compare then showed it as one chunk removed and one added, not as a changed chunk.

getChunkKey now skips guessed (bracketed) names and matches those chunks by their entry module, or by their first module when there is no entry. Chunks with a real name are still matched by name. The last-resort key used the full sorted module list, which broke the same way, so the first-module match replaces it too.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings October 20, 2026 02:54

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@pkg-pr-new

pkg-pr-new Bot commented Oct 20, 2026

Copy link
Copy Markdown

Open in StackBlitz

@vitejs/devtools

npm i https://pkg.pr.new/@vitejs/devtools@614

@vitejs/devtools-kit

npm i https://pkg.pr.new/@vitejs/devtools-kit@614

@vitejs/devtools-oxc

npm i https://pkg.pr.new/@vitejs/devtools-oxc@614

@vitejs/devtools-rolldown

npm i https://pkg.pr.new/@vitejs/devtools-rolldown@614

@vitejs/devtools-vite

npm i https://pkg.pr.new/@vitejs/devtools-vite@614

@vitejs/devtools-vitest

npm i https://pkg.pr.new/@vitejs/devtools-vitest@614

commit: 4e5fb0f

@webfansplz
webfansplz merged commit 6bd7543 into main Oct 20, 2026
10 checks passed
@webfansplz
webfansplz deleted the fix/compare-unnamed-chunk-matching branch October 20, 2026 02:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants