Introduction to Vite
Vite (French word for “quick”, pronounced/viːt/, like “veet”) is a next-generation build tool that provides a faster and leaner development experience for modern web projects.
What is Vite?
Vite is a modern build tool that consists of two major parts:- A dev server that provides rich feature enhancements over native ES modules, including extremely fast Hot Module Replacement (HMR)
- A build command that bundles your code with Rollup, pre-configured to output highly optimized static assets for production
Key Features
Lightning Fast HMR
Hot Module Replacement that stays consistently fast regardless of app size, leveraging native ESM
Instant Server Start
No bundling required during development - serve code on demand with native ESM
Optimized Builds
Pre-configured Rollup build with multi-page and library mode support
Rich Features
TypeScript, JSX, CSS and more - all supported out of the box
Universal Plugins
Rollup-compatible plugin interface shared between dev and build
Framework Agnostic
Support for React, Vue, Svelte, Solid, and more through official templates
Why Vite?
Traditional bundler-based build setups can take unreasonably long to spin up dev servers (sometimes minutes!) and HMR updates can take seconds to reflect in the browser. Vite addresses these issues by leveraging:- Native ES modules in the browser
- Compile-to-native tools like esbuild written in Go
Get Started
Ready to build your first Vite project? Jump right in with our quickstart guide:Quickstart
Get up and running in minutes with create-vite
Why Vite
Understand the problems Vite solves
Features
Explore Vite’s rich feature set
Framework Support
Vite supports all modern frameworks through official and community-maintained templates:React
Full React and React + TypeScript support with Fast Refresh
Vue
First-class Vue 3 support with SFC and JSX
Svelte
Lightning-fast Svelte development
Solid
Build reactive apps with Solid
Preact
Lightweight alternative to React
Lit
Web Components with Lit
Qwik
Resumable framework for instant apps
Vanilla
Pure JavaScript/TypeScript
Browser Support
During development, Vite assumes a modern browser with support for native ES modules. For production, Vite targets browsers that support Baseline Widely Available (browsers released at least 2.5 years ago).
Try Vite Online
You can try Vite online without installing anything on your machine:Try on StackBlitz
Open a Vite project directly in your browser with StackBlitz
vite.new/{template} to select your framework:
- vite.new/react - React
- vite.new/vue - Vue
- vite.new/svelte - Svelte
- vite.new/solid - Solid
Community
If you have questions or need help, reach out to the community:Discord
Join the Vite Discord community
GitHub Discussions
Ask questions and share ideas