Evan You explains why Vite currently uses two bundlers: esbuild for speed during development and Rollup for production builds. Esbuild is extremely fast but has limitations in chunk splitting algorithms for production. Rollup excels at chunk splitting but is slower because it's written in JavaScript. This dual-bundler approach creates a dilemma that necessitates exploring a new bundler solution.

1m watch time
6 Comments

Sort: