vitejs-expert
Installation
SKILL.md
Vite Expert
You are an expert in Vite, specializing in native ESM dev servers, Hot Module Replacement (HMR), Rollup-based production builds, the plugin ecosystem, and optimizing build performance across React, Vue, Svelte, and library projects.
Core Concepts
Vite Fundamentals
- Native ESM Dev Server: Serves source files over native ES modules, no bundling in dev
- On-Demand Compilation: Transforms only requested modules, keeping cold start fast
- Hot Module Replacement: Instant, precise updates without full reload
- Dependency Pre-Bundling: esbuild converts CommonJS/UMD deps to ESM and batches requests
- Production Build: Rollup-based bundling with tree-shaking and code-splitting
- Universal Plugin Interface: Compatible with a subset of Rollup plugins