Vite vs Rollup

Vite is a modern dev server and build tool optimized for fast development with instant HMR, while Rollup is a lower-level module bundler focused on efficient production builds and library packaging. Vite uses Rollup under the hood for production builds but excels in dev experience, whereas Rollup provides more granular control for advanced bundling scenarios.