Tencent Cloud Developer
Sep 2, 2022 · Frontend Development
Understanding Vite's Dependency Scanning and Pre‑Bundling Process
Vite improves dev‑server startup and runtime speed by scanning every project HTML file (excluding node_modules) with an esbuild plugin that traverses the module graph, classifies JavaScript, assets, bare imports and framework files, creates virtual modules, and records each bare import’s actual path for pre‑bundling.
Dependency ScanningHTMLJavaScript
0 likes · 18 min read
