I was debugging some chunking regressions in an app I work on when updating from Vite 7 to Vite 8. I got an AI to generate a tool to help figuring out what was wrong, and I uploaded it at nicolo-ribaudo.github.io/vite-compare/ in case it's useful for anybody else.
Post
nicolo-ribaudo.github.ioVite bundle compareCompare two Vite bundle builds side-by-side: chunk diff, per-entry size analysis, module diff, and an interactive chunk/module graph.
Rolldown was over-splitting compared to Rollup, I had to manually configure some groups. It has something to do with cycles across chunks and modules imported both through a static and dynamic imports chain, but I cannot get a minimal reproduction to show the same behavior.
0 reposts5 likes
Interesting! Did you try using `attachDebugInfo` (which should give insights why certain chunks were created)? rolldown.rs/reference/In...
rolldown.rsRolldown | Rust bundler for JavaScriptFast Rust-based bundler for JavaScript with Rollup-compatible API