Vite 2.0: next-gen ESM-native bundler

Vite 2.0 (February 2021) by Evan You (Vue creator): ESM-native dev server with instant hot reload, esbuild in dev, Rollup in production. Framework-agnostic. Dramatically accelerates frontend development experience.

Open SourceWebR&D ViteEvan YouBundlerESMVueFrontendOpen Source

The webpack slowness problem

In modern 2018-2020 frontend projects, Webpack dev server startup takes dozens of seconds for medium-sized applications, with hot reload slowing as code grows. Structural cause: Webpack bundles everything even in dev, even when the browser natively supports ES modules.

Vite, conceived by Evan You (Vue.js creator) in 2020, changes approach: no bundle in development. Every native ES import is served as a single file; the browser asks only for actually used modules. In production it uses Rollup for optimised bundles.

Version 2.0 of 16 February 2021 is the first fully framework-agnostic. MIT licence.

Architecture

  • Dev server — serves every source as native ES module, with just-in-time transformations
  • esbuild (Go, by Evan Wallace) — for dependency pre-bundling (avoids importing hundreds of node_modules files)
  • Rollup — for production build
  • Custom HMR very fast

The name “Vite” (French: “fast”) is evocative: startup times are measured in milliseconds, not seconds.

Framework support

Vite 2 supports out-of-the-box:

  • Vue 2, 3
  • React, with Fast Refresh
  • Svelte
  • Preact, Lit, Solid
  • TypeScript, JSX, CSS/PostCSS/Sass/Less
  • Vanilla JS, Web Components

Plugin API inherited from Rollup.

Impact

Vite rapidly becomes the new standard:

  • SvelteKit (2021) based on Vite
  • Astro (2022) uses Vite
  • Nuxt 3 (2022) uses Vite
  • Remix (2023) migrates to Vite
  • create-vite replaces create-react-app as scaffolding

In the Italian context

Broad adoption in all frontend teams from 2022 onwards.


References: Vite 2.0 (16 February 2021). Evan You. MIT licence. esbuild (dev), Rollup (prod). Framework-agnostic. Base of SvelteKit, Astro, Nuxt 3, Remix.

Need support? Under attack? Service Status
Need support? Under attack? Service Status