Vite 8.0 Released: Up to 30x Faster Development with Rolldown

5 min read
Vite 8.0 Released: Up to 30x Faster Development with Rolldown - cover image
Summary

Vite 8 is finally out as a stable release! The new version ships with Rolldown, a Rust-based unified bundler that replaces esbuild and Rollup, and gives developers up to 30x faster build times.

> Source: This post is based on the Vite team's official announcement, Vite 8.0 is out!

There is great excitement about announcing that the stable release of Vite 8 is out! When Vite first launched, it made a pragmatic bet on esbuild for speed during development and on Rollup for optimized production builds. That approach served very well for years. Today, however, we are facing a major evolution: Vite 8 ships with a single, unified, Rust-based bundler called Rolldown. This revolutionary step speeds up build times by 10 to 30x while preserving full plugin compatibility. It stands out as the biggest architectural change since Vite 2.

Vite is currently downloaded 65 million times a week, and the ecosystem keeps growing with every new release. To help developers in the ever-expanding plugin world, registry.vite.dev has also launched: a comprehensive, searchable directory that collects data from the npm database.

Vite's New Rolldown-Powered Foundation

The Problem

Since its earliest versions, Vite relied on two separate bundlers to serve different needs. esbuild handled fast compilation during development (dependency pre-bundling and TypeScript/JSX transforms), making the development experience feel instant. Rollup took care of production bundling, chunking and optimization, and its rich plugin API made it the lifeblood of the Vite ecosystem.

This dual-bundler approach did a great job for many years. It allowed the focus to stay on developer experience and orchestration. But it also came with trade-offs: two separate transform pipelines meant two separate plugin systems. An ever-growing amount of “glue code” was needed to keep the two pipelines in sync. Inconsistencies in module handling piled up over time, and every fix on one side risked creating differences on the other.

The Solution

This is where Rolldown comes in: a Rust-based bundler built by the VoidZero team to solve these challenges directly. It is designed to serve three main goals:

1. Performance: Written in Rust, Rolldown runs at native speed. In benchmarks it matches esbuild's level of performance, delivering results 10-30x faster than Rollup. 2. Compatibility: Rolldown supports the same plugin API as Rollup and Vite. Most existing Vite plugins can work with Vite 8 out of the box without issues. 3. Advanced Features: A single unified bundler unlocks capabilities that were previously hard to achieve, such as full bundle mode, more flexible chunk splitting, module-level persistent caching and Module Federation support.

Real-World Performance

During the preview and beta phases of rolldown-vite, many companies reported incredible, measurable drops in their production build times:

* Linear: Production build time dropped from 46 seconds to 6 seconds. * Ramp: 57% reduction in build time. * Mercedes-Benz.io: Up to 38% reduction in build time. * Beehiiv: A 64% reduction in build time.

The impact becomes especially noticeable in large and complex projects. More improvements are expected down the road as Rolldown keeps evolving.

A Unified Toolchain

With Vite 8, Vite becomes the main entry point of an end-to-end toolchain made up of closely collaborating teams: the core tool (Vite), the bundler (Rolldown) and the compiler (Oxc). This strong alignment ensures consistent behavior across all components, from parsing code to transforming and minifying it. New developments in the JavaScript language can now be integrated much faster.

Node.js Requirement

Vite 8 requires Node.js 20.19+ or 22.12+. Lower versions are not supported. This range guarantees unflagged require(esm) support under the hood, which allows Vite to be distributed easily as a pure ESM (ECMAScript Modules) package.

Additional Features in Vite 8

Besides the Rolldown integration, the other standout features of Vite 8 are:

* Integrated Devtools: Vite 8 natively offers Vite Devtools, integrated directly with the dev server, for analyzing and debugging your projects. * Built-in tsconfig paths support: Supports TypeScript 'path alias' resolution. Developers can enable it by setting resolve.tsconfigPaths to true. * emitDecoratorMetadata Support: Vite 8 now supports TypeScript's emitDecoratorMetadata feature natively, with no need for external plugins. * Wasm SSR Support: .wasm?init imports now work in Server-Side Rendering (SSR) scenarios. * Browser Console Forwarding: Vite 8 can forward console errors and output from the browser to the terminal. This is a lifesaver especially for developers working with AI coding tools (Cursor, Copilot, etc.). It is activated automatically when a coding agent is detected. * @vitejs/plugin-react v6: Released for React projects, v6 uses Oxc for the React Refresh transform. This removes the Babel dependency and results in a much smaller install size.

The Change in Install Size

Because of its improved features, Vite 8 is about 15 MB larger than Vite 7. There are two reasons for this:

1. Lightningcss (~10 MB): Formerly an optional peer dependency, it now ships with the package as a standard dependency for better CSS minification. 2. Rolldown (~5 MB): Because it favors performance over a small file size, it takes up slightly more space than the esbuild and Rollup pair.

Migration Guide

For many projects, upgrading to Vite 8 will be fairly easy. Thanks to the built-in compatibility layer, existing configurations carry over smoothly to the Rolldown and Oxc format. If you are running a large project, it is recommended to migrate gradually and in a controlled way.

As a thank-you to everyone who has added value to this tool over the years, from the author of esbuild to the Rollup team: the work that shaped Vite's architecture into what it is today is undeniable, and they continue to make history in this code ecosystem.

Weekly Newsletter

This week’s posts, in your inbox every Monday

A short summary of the posts published that week on AI, Claude Code, MCP and web development. No new posts, no email.

  • One email a week
  • No ads
  • One-click unsubscribe