esbuild alternatives

The closest alternatives to esbuild are Rolldown, tsdown and Rollup. Stay with esbuild when: Bundling libraries, CLIs and server code with minimal configuration.

Rolldown

Choose it over esbuild whenPick 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).

Open sourceMIT

Rolldown on DevCuratoresbuild vs RolldownSource ↗Checked 25 November 2026

tsdown

Choose it over esbuild whenPick it for a typed npm package: a library bundler on Rolldown and Oxc that generates declaration files by default when package.json has a types field. tsup, the esbuild-based one, is no longer actively maintained and points to it.

tsdown: a library bundler on Rolldown and Oxc that generates declaration files by default when package.json has a types field (dts). tsup, the esbuild-based library bundler, now says it is "not actively maintained anymore" and points to tsdown (README). Pick tsdown for a typed npm package.

MIT

tsdown.dev ↗Source ↗Checked 25 November 2026

Rollup

Choose it over esbuild whenChoose it for a module bundler built around ES modules, with static analysis that drops unused code. It does not resolve npm packages out of the box; you add a plugin.

Rollup is a module bundler that compiles small pieces of code into a library or application and uses the standardized ES module format (introduction). It statically analyzes the code you import and excludes anything not used, which its docs call tree-shaking (introduction). Unlike webpack and Browserify, it does not know out of the box how to handle dependencies installed from npm, so you add a plugin (tools). The latest release is 4.68.8, published 2026-11-21, under MIT (npm registry, LICENSE).

MIT

rollupjs.org ↗Source ↗Checked 25 November 2026