Vite's Dependency Pre-Bundling: How the Cache Works and When to Override It
Vite's dev server feels instant because esbuild pre-bundles node_modules into single-file ESM before the browser ever asks. Here's how the cache invalidates — and the monorepo case it misses.