vitejs/vite
6 articles
Prerequisites
- ›Basic understanding of ES modules
- ›Node.js CLI basics
- ›Familiarity with package.json bin field
Entry Point and Boot Process
How Vite starts up: from CLI to dev server initialization
Vite 8 Internals: Architecture Overview and How to Navigate the Codebase
A high-level tour of Vite's monorepo structure, entry points, four source directories, the Environment API, and the Rolldown transition.
How Vite Resolves Configuration and Assembles the Plugin Pipeline
Deep-dive into Vite's configuration loading strategies, the resolveConfig() pipeline, environment options merging, and internal plugin ordering.
Inside Vite's Dev Server: Middleware Stack, Transform Pipeline, and Module Graph
How the dev server is created, the middleware stack from security to SPA fallback, transformRequest() internals, and the EnvironmentModuleGraph data structure.
Hot Module Replacement and Dependency Pre-Bundling in Vite
Traces the complete HMR cycle from file change to module re-fetch, then covers Rolldown-powered dependency scanning, bundling, and runtime discovery.
Production Builds, the Builder API, and Vite's Module Runner for SSR
How createBuilder() orchestrates multi-environment production builds, Rolldown integration, CSS processing, the Module Runner for SSR, and experimental bundled dev mode.