Vite serves source files directly during development via native ESM. No bundling required for dev server. Production builds use Rollup for optimization. Framework plugins support React, Vue, Svelte.
Development Experience
Instant server start regardless of app size. Hot module replacement updates changes instantly. Dependencies pre-bundled once and cached. TypeScript transforms without configuration.
- Start projects with framework-specific templates
- Configure plugins in vite.config.ts
- Use import.meta.env for environment variables
- Configure proxy for API development
- Customize build output as needed
Production Builds
Rollup handles production bundling. Tree-shaking removes unused code. Code splitting optimizes loading. Asset optimization for images and fonts.