Vite 05 ⚡ Dependency Pre-Bundling — Why node_modules gets bundled separately
The dev server serves the source code on demand, but it does not serve the node_modules the same way. The dependencies are pre-bundled once at startup, and the browser receives a single merged file per dependency instead of the library’s internal module tree. The previous chapter covered the on-demand transform; this chapter explains the exception…