JOURNAL · CODE & DESIGN
Turning React Apps into Bullets with Vite
The transition from the Webpack era to the Vite era has been one of the biggest revolutions in the frontend world.
Why is Vite So Fast?
Vite does not bundle code during development; it serves it directly to the browser using native ES modules. This means your app spins up in seconds, no matter how large it is.
// Starting a new Vite project
npm create vite@latest my-app -- --template react
It also uses Rollup for the production build to deliver optimized, small-sized files. May performance be with you!