esbuild vs Rolldown
esbuild: Bundling libraries, CLIs and server code with minimal configuration.; Rolldown: Teams already on Vite or Rollup who want faster builds.
| Field | esbuild | Rolldown |
|---|---|---|
| Pricing | Open source | Open source |
| Open source | Yes | Yes |
| Self-hostable | Yes | Yes |
| Ecosystem | JavaScript / TypeScript | JavaScript / TypeScript |
| License | MIT | MIT |
| Category | Build & packages | Build & packages |
Choose Rolldown over esbuild when
Pick it for Rollup-compatible plugins or if you already run Vite. It is the Rust bundler Vite 8 uses in place of esbuild and Rollup, said to be 10-30x faster than Rollup; for plain apps its guide recommends going through Vite.
Rolldown: a Rust bundler that Vite 8 uses in place of esbuild and Rollup, with Rollup's plugin API. Vite's release post says it is 10-30x faster than Rollup and matches esbuild's speed (Vite 8). Pick it for Rollup-compatible plugins or if you already run Vite; for plain apps, Rolldown's own guide recommends going through Vite (guide).
SourceChecked 25 November 2026
Choose esbuild over Rolldown when
Choose it when you need bundling, TypeScript syntax transforms, minification and source maps through one CLI or JavaScript API.
esbuild bundles JavaScript, reads TypeScript and JSX, and provides built-in tree shaking, minification and source maps. Its command line and JavaScript API both support bundling from an entry point, so a project can use a build script or invoke it directly. esbuild API
SourceChecked 29 November 2026
esbuild
An extremely fast JavaScript and TypeScript bundler and minifier written in Go.
Choose esbuild if
Bundling libraries, CLIs and server code with minimal configuration.
Why it’s here
esbuild is a bundler and minifier for JavaScript, TypeScript, JSX and CSS, written in Go, with a CLI, a JavaScript API and a Go API. Its published benchmark bundles 10 copies of three.js with minification and source maps in 0.39 s, against 14.91 s for Parcel 2, 34.10 s for Rollup 4 plus terser and 41.21 s for webpack 5, on a 6-core 2019 MacBook Pro (benchmark details). It reaches that speed without a cache (home).
Pick it when
- You bundle a Node service, CLI or serverless function and the whole build is one command, such as
esbuild app.js --bundle --platform=node --outfile=out.js(getting started). - Your own tool or script needs to bundle or transform code. Amazon CDK and Phoenix use esbuild as a library, and Vite used it for TypeScript transforms for quite a while (production readiness).
- You only need TypeScript types stripped, not checked. esbuild parses TypeScript and discards the annotations; run a separate
tsctype check alongside it (TypeScript).
Skip it when
- You need hot-module replacement for JavaScript. The docs say it "is not currently implemented", and the maintainer lists it as out of scope (API, roadmap). Use Vite.
- You publish a TypeScript library with types. esbuild does not generate
.d.tsfiles, and does not supportemitDecoratorMetadata(TypeScript caveats). - You must output ES5. Transforming ES6+ to ES5 "is not supported yet" (JavaScript caveats).
- You depend on fine-grained code splitting. The maintainer calls it "pretty primitive" (production readiness).
Current state
The latest release is 0.28.2, published 2026-08-08; the one before it was 0.28.1 on 2026-06-11 (releases). The license is MIT, copyright Evan Wallace (LICENSE). He is the main developer, writes that he is "not doing active feature development" at the moment, and still maintains the project and ships periodic releases (roadmap, production readiness). Vite 8 made esbuild an optional dependency, needed only by plugins that call transformWithEsbuild (Vite migration guide).
Setup
The docs pin the exact version at install (install):
npm install --save-exact --save-dev esbuild
Watch out for
esbuild is below 1.0 and uses minor versions for backwards-incompatible changes, so pin the exact version or the major and minor (production readiness). It compiles each file in isolation, so turn on isolatedModules in tsconfig.json (TypeScript caveats). Plugins cannot modify the AST, and a plugin that runs on every file slows the build, most of all one written in JavaScript (plugin limitations). esbuild treats all inputs, including node_modules, as trusted and is not a sandbox, and its development server is not meant for production (not a sandbox).
Rolldown
A Rust-based JavaScript bundler with a Rollup-compatible API, built to power Vite.
Choose Rolldown if
Teams already on Vite or Rollup who want faster builds.
Why it’s here
Rolldown is a Rust-based JavaScript bundler with a configuration format and JavaScript API designed to be compatible with Rollup. Its plugin interface lets a project reuse many Rollup plugins, while the bundler handles transformations such as TypeScript and JSX. It can run through a command line or be called from a build script. Repository Getting started Plugin API Vite 8 uses Rolldown as its bundler. Vite 8 release announcement
Pick it when
- You have a Rollup-style configuration and want to preserve separate input and output settings. The guide shows both a configuration file and a JavaScript API that accepts input options, then takes output options when generating or writing the bundle. Getting started
- You maintain a build tool that rebuilds when files change. Rolldown exposes a watcher API with build events and an asynchronous close operation. Watcher API
Skip it when
- Your build needs a Rollup plugin that relies on
shouldTransformCachedModule,resolveImportMetaorrenderDynamicImport. The plugin reference lists these hooks as unsupported. Plugin API - Your build requires a native binary on a platform outside the published list. The installation guide offers a WebAssembly build or building from source for platforms without a prebuilt native package. Installation
Current state
The latest release is v1.3.4, published on 2026-11-26. Release Publication timestamp The licence is MIT. Repository
Setup
Install the project dependency with npm install -D rolldown. The guide shows passing an entry file to the CLI or supplying a configuration file when you need more build options. Getting started
Watch out for
Rolldown runs build hooks separately for each output configuration. In watch mode it calls the options hook when it creates the watcher, so a plugin that adapts those options on each rebuild needs review before migration. The watcher's close() also returns a promise. Plugin API Watcher API