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.
And this was happening for a whole bunch of modules, causing the number of chunks to increase from ~50 to ~80. The solution in this example would be to manually define a group containing the entry point of the "index" chunk, and then it automatically includes what would otherwise be in "vendor"
0 reposts5 likes