For the same application webpack produces smaller JS bundle (webpack: 494KB, vite: 520KB). Perhaps some additional configuration of vite is needed?
c
CLOVIS
09/07/2025, 9:27 AM
I wonder if webpack got better? When I first started using Vite in ~2022, Vite was ~10% smaller than the Closure Compiler, which was itself ~30% smaller than Webpack
CLOVIS
09/07/2025, 9:28 AM
I think by default Rollup keeps comments, maybe that could explain the difference
CLOVIS
09/07/2025, 9:28 AM
I'd have to analyze the contents of the bundle, but short-term I'd like to focus on stability