Read OSS

vitejs/vite

6 articles

Prerequisites

01

Entry Point and Boot Process

How Vite starts up: from CLI to dev server initialization

02

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.

03

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.

04

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.

05

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.

06

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.