Skip to main content

Menu

LEVEL 0
0/5 XP
HomeAboutTopicsPricingMy VaultStats

Categories

🤖 Artificial Intelligence
☁️ Cloud and Infrastructure
💾 Data and Databases
💼 Professional Skills
🎯 Programming and Development
🔒 Security and Networking
📚 Specialized Topics
HomeAboutTopicsPricingMy VaultStats
LEVEL 0
0/5 XP
GitHub
© 2026 CheatGrid™. All rights reserved.
Privacy PolicyTerms of UseAboutContact

Vite Cheat Sheet

Vite Cheat Sheet

Back to Developer Tools
Updated 2026-04-29
Next Topic: Vitest Testing Framework Cheat Sheet

Vite is a next-generation frontend build tool created by Evan You that leverages native ES modules and, since Vite 8 (March 2026), a single Rolldown Rust-based bundler for both development and production. Earlier versions used esbuild for dev pre-bundling and Rollup for production; Vite 8 unifies both under Rolldown with Oxc for JS transforms and minification, delivering 10–30x faster production builds. This dual shift—unbundled ESM dev server for instant HMR plus Rolldown-powered optimized builds—makes Vite the de facto build tool for Vue, React, Svelte, and virtually every modern framework project.

What This Cheat Sheet Covers

This topic spans 22 focused tables and 179 indexed concepts. Below is a complete table-by-table outline of this topic, spanning foundational concepts through advanced details.

Table 1: Core ConceptsTable 2: Project Setup and CommandsTable 3: Configuration FileTable 4: Dev Server ConfigurationTable 5: Build ConfigurationTable 6: Hot Module Replacement (HMR)Table 7: Static Asset HandlingTable 8: CSS HandlingTable 9: Environment VariablesTable 10: TypeScript SupportTable 11: Plugin SystemTable 12: Official PluginsTable 13: JavaScript APITable 14: Multi-Page AppsTable 15: Code SplittingTable 16: Server-Side Rendering (SSR)Table 17: Dependency OptimizationTable 18: Advanced Build OptionsTable 19: Performance OptimizationTable 20: Backend IntegrationTable 21: Environment APITable 22: CLI Flags

Table 1: Core Concepts

ConceptExampleDescription
Native ES Modules (ESM)
Browser loads <script type="module"> directly
• Vite serves source code as native ES modules during dev
• browser handles imports without bundling, enabling instant server start
esbuild Pre-bundling
node_modules/.vite/deps/ folder created
Dependencies are pre-bundled (Rolldown in Vite 8, previously esbuild) to convert CommonJS/UMD to ESM and reduce HTTP requests
Hot Module Replacement (HMR)
Edit component → instant browser update
• Changes reflect in browser without full page reload
• HMR API accepts module updates and preserves application state
Rolldown
Introduced in Vite 8 as single unified bundler
• Rust-based bundler replacing both esbuild and Rollup in Vite 8
• 10–30x faster than Rollup, matching esbuild speed; handles dev optimizer and production build
Oxc
JS transforms & minification via Oxc
• Rust-based JS toolchain (parser, transformer, minifier) replacing esbuild in Vite 8
• 'oxc' is now default build.minify value

More in Developer Tools

  • Vim and Neovim Cheat Sheet
  • Vitest Testing Framework Cheat Sheet
  • AI-LLM Code Generation Cheat Sheet
  • Docker Desktop for Developers Cheat Sheet
  • Jupyter Notebooks Cheat Sheet
  • RStudio Cheat Sheet
View all 55 topics in Developer Tools