Vite
Vite is a modern, blazing-fast frontend build tool and development server. It uses native ES modules for instant server startup and esbuild for lightning-fast production builds, replacing older bundlers like webpack.
§ 1 Definition
Vite (French for 'quick', pronounced 'veet') is a next-generation frontend build tool created by Evan You (creator of Vue.js). It serves source code over native ES modules during development, eliminating the need for a bundler until production. This enables near-instant server startup (regardless of project size) and sub-millisecond hot module replacement (HMR) that preserves component state across edits. For production builds, Vite uses Rollup (with esbuild for pre-bundling dependencies) to produce optimized bundles with automatic code splitting, CSS minification, and tree shaking. Vite supports TypeScript, JSX, CSS preprocessors, CSS modules, WebAssembly, and Workers out of the box, plus extensive plugin support through a Rollup-compatible plugin interface. By 2026, Vite has become the default build tool for most new frontend projects, including the official scaffolding tools for React, Vue, Svelte, and others.
§ 2 Development Server Architecture
Vite's development server uses a fundamentally different approach from webpack-based tools. Instead of bundling the entire application before serving it (which slows startup as the project grows), Vite serves modules on demand using native ES module imports. It pre-bundles dependencies with esbuild (a Go-based bundler that is 10-100x faster than webpack) but serves application code as individual native ES modules. This means server startup is instant regardless of how many source files you have, and HMR updates are fast because only the changed module needs to be invalidated, not the entire dependency graph.
§ 3 Production Build
For production, Vite uses Rollup (configured with sensible defaults) to produce optimized bundles. The production build includes automatic CSS code splitting (extracting CSS into separate files per chunk), async chunk loading (import.meta.glob for dynamic imports), legacy browser support via @vitejs/plugin-legacy, and manual chunk configuration for caching optimization. Vite also supports library mode for building component libraries and packages.
§ 4 Note
§ 5 In code
```bash
# Create a new project
npm create vite@latest my-project -- --template react-ts
# Start development server
cd my-project && npm run dev
# Build for production
npm run build
# Preview production build
npm run preview
```§ 6 Common questions
- Q. How does Vite compare to webpack?
- A. Vite is significantly faster for development (10-100x faster startup) because it uses native ES modules instead of bundling during dev. webpack has a more mature plugin ecosystem but is slower. Most new projects should use Vite. Migrate existing webpack projects if the slow dev server is a bottleneck.
- Q. Can I use Vite for production?
- A. Yes. Vite powers production applications for thousands of teams. Its Rollup-based production build produces optimized, tree-shaken, code-split bundles.
- Vite uses native ES modules for instant dev server startup and fast HMR.
- It pre-bundles dependencies with esbuild (Go-based) but serves source code as native ES modules.
- Production builds use Rollup for optimized, code-split, tree-shaken output.
Vite is the default build tool in Atomic Glue's development workflow. Our projects use Vite for rapid development iteration with instant HMR, and the optimized production builds contribute to better site performance. We configure Vite's build pipeline for each project's specific needs: code splitting strategies, asset optimization, and legacy browser support. If your current build tool is slowing your team down, our website development team can help migrate to Vite.
Get in touchVite is a modern, blazing-fast frontend build tool and development server. It uses native ES modules for instant server startup and esbuild for lightning-fast production builds, replacing older bundlers like webpack.
Category: Front End (also: Software Engineering, Devops)
Author: Atomic Glue Development Team
## Definition
Vite (French for 'quick', pronounced 'veet') is a next-generation frontend build tool created by Evan You (creator of Vue.js). It serves source code over native ES modules during development, eliminating the need for a bundler until production. This enables near-instant server startup (regardless of project size) and sub-millisecond hot module replacement (HMR) that preserves component state across edits. For production builds, Vite uses Rollup (with esbuild for pre-bundling dependencies) to produce optimized bundles with automatic code splitting, CSS minification, and tree shaking. Vite supports TypeScript, JSX, CSS preprocessors, CSS modules, WebAssembly, and Workers out of the box, plus extensive plugin support through a Rollup-compatible plugin interface. By 2026, Vite has become the default build tool for most new frontend projects, including the official scaffolding tools for React, Vue, Svelte, and others.
## Development Server Architecture
Vite's development server uses a fundamentally different approach from webpack-based tools. Instead of bundling the entire application before serving it (which slows startup as the project grows), Vite serves modules on demand using native ES module imports. It pre-bundles dependencies with esbuild (a Go-based bundler that is 10-100x faster than webpack) but serves application code as individual native ES modules. This means server startup is instant regardless of how many source files you have, and HMR updates are fast because only the changed module needs to be invalidated, not the entire dependency graph.
## Production Build
For production, Vite uses Rollup (configured with sensible defaults) to produce optimized bundles. The production build includes automatic CSS code splitting (extracting CSS into separate files per chunk), async chunk loading (import.meta.glob for dynamic imports), legacy browser support via @vitejs/plugin-legacy, and manual chunk configuration for caching optimization. Vite also supports library mode for building component libraries and packages.
## Note
Common misunderstanding: Vite is not just for Vue projects. Even though Evan You created both, Vite is framework-agnostic and is the recommended build tool for React, Svelte, Solid, Lit, and vanilla JS projects. Another misconception: Vite is only useful during development. Its production build (Rollup-based) generates optimized, production-ready bundles with code splitting, CSS extraction, and tree shaking. Vite is a full build tool, not just a dev server.
## In code
## Common questions Q: How does Vite compare to webpack? A: Vite is significantly faster for development (10-100x faster startup) because it uses native ES modules instead of bundling during dev. webpack has a more mature plugin ecosystem but is slower. Most new projects should use Vite. Migrate existing webpack projects if the slow dev server is a bottleneck. Q: Can I use Vite for production? A: Yes. Vite powers production applications for thousands of teams. Its Rollup-based production build produces optimized, tree-shaken, code-split bundles.
## Key takeaways
- Vite uses native ES modules for instant dev server startup and fast HMR.
- It pre-bundles dependencies with esbuild (Go-based) but serves source code as native ES modules.
- Production builds use Rollup for optimized, code-split, tree-shaken output.
## Related entries
- [React](atomicglue.co/glossary/react)
- [Vue.js](atomicglue.co/glossary/vue-js)
- [Svelte](atomicglue.co/glossary/svelte)
Last updated June 2026. Permalink: atomicglue.co/glossary/vite