0
Challenge · 80Tooling & Quality

Vite

Toolused in ~80% of apps

The old way bundled your entire app before the dev server could even open — so startup got slower with every file you added. Vite makes startup near-instant and keeps it that way no matter how big the app grows. It is the 2026 standard for new React projects, and the tool the React team itself points to now that Create React App is gone.

Core idea. Vite is a build tool with two distinct modes: in development it serves your source as native ES modules on demand (transforming one file at a time, no upfront bundle), and for production it builds an optimized, bundled, tree-shaken output. Fast feedback while you code, a lean bundle when you ship.
Playground, this isn't a screenshot
app size48 modules

Drag to grow the app, then press npm run dev in each mode and compare the startup time.

/src (48 modules)served on demand: 0/48
server idle0 ms
Hot Module Replacement
Start the dev server first.0 ms

Vite serves your source as native ES modules. Startup is ~constant (120 ms) no matter how big the app grows — the browser asks for a module, Vite transforms that one file with esbuild and returns it. Only the 6 modules the first screen needs load up front; the rest stream in on demand. HMR swaps the single edited module, so it stays near-instant.

↑ play a little first, then dig in