Vite vs Rollup

Vite is a modern build tool optimized for development speed with instant HMR and pre-configured defaults, while Rollup is a lower-level module bundler that excels at library bundling and offers maximum configurability for advanced use cases. Vite uses Rollup under the hood for production builds but focuses on developer experience, whereas Rollup requires more manual setup.