Rare Earth Juejin Tech Community
Jun 30, 2024 · Frontend Development
Understanding Vite’s Development Server Architecture and Pre‑bundling Mechanism
This article explains how Vite achieves fast development by serving ES modules directly, using a connect‑based dev server with plugin‑driven transforms, pre‑bundling dependencies via esbuild, generating hash‑based cache keys, and reusing the same plugins in Rollup for production builds.
Pre‑bundlingRollupdev server
0 likes · 9 min read
