
Rolldown Has a Free API: The Rust-Based Bundler That Will Power Vite
Vite currently uses esbuild for dev and Rollup for production. Rolldown will replace both with one Rust bundler. What Is Rolldown? Rolldown is a Rust port of Rollup, designed to be the unified bundler for Vite. Built by the Vite team, it aims to match Rollup's plugin API while being 10-100x faster. // rolldown.config.js — same API as Rollup export default { input : ' src/index.js ' , output : { dir : ' dist ' , format : ' esm ' } } npx rolldown -c rolldown.config.js Rollup Plugin Compatibility import resolve from ' @rollup/plugin-node-resolve ' import commonjs from ' @rollup/plugin-commonjs ' export default { input : ' src/index.js ' , plugins : [ resolve (), // Rollup plugins work! commonjs () // Same plugin API ], output : { dir : ' dist ' , format : ' esm ' } } Why Rolldown Matters 1. One bundler for dev and prod — Vite currently uses esbuild (dev) + Rollup (prod). Different tools = different behaviors = bugs that only appear in production. Rolldown is one tool for both. 2. Speed —
Continue reading on Dev.to JavaScript
Opens in a new tab


