Back to gallery
rolldown/rolldown on GitHub — Fast Rust bundler for JavaScript/TypeScript with Rollup-compatible API.
rolldown
Built byrolldown/

rolldown

Fast Rust bundler for JavaScript/TypeScript with Rollup-compatible API.

Stars
14.1k
Forks
1k
Watchers
14.1k
Open issues
313
RustMIT main Updated 5 minutes ago~12 stars/day lifetime
Editor's take

Rolldown is a JavaScript and TypeScript bundler written in Rust, built to be the bundler inside Vite, with Rollup-compatible APIs and plugin interface. It uses Oxc for parsing, resolving and source maps, and it is past 1.0, with v1.3.3 released on November 18. For most people the change arrives through Vite itself, but you can use it directly for libraries and apps. The tradeoff: Rollup plugin compatibility is high but not total, so plugins that rely on internals can break, and the Rust core is harder to debug than Rollup's JavaScript. MIT, about 14k stars, from VoidZero.

Use this if

Your production builds in Vite or Rollup are slow and you want the bundler Vite is moving to.

Skip if

You are on webpack with heavy custom loaders; Rspack is the closer migration path.

CLI & Dev ToolsFrameworks
Topics
bundlerjavascripttypescript
Quick install
# Add to Cargo.toml:
cargo add rolldown

Inferred from Rust · always double-check against the official README below.

README — rendered from rolldown/rolldown



rolldown logo


MIT licensed NPM version CodSpeed Badge Discord chat

NPM Unpacked Size (with version) NPM Unpacked Size darwin-arm64 NPM Unpacked Size darwin-x64 NPM Unpacked Size linux-x64-gnu NPM Unpacked Size win32-x64 NPM Unpacked Size wasm32-wasi

pkg.pr.new

rolldown-starter-stackblitz

Rolldown

Rolldown is a JavaScript/TypeScript bundler written in Rust intended to serve as the future bundler used in Vite. It provides Rollup-compatible APIs and plugin interface, but will be more similar to esbuild in scope.

For more information, please check out the documentation at rolldown.rs.

VoidZero Inc.

Rolldown is a project of VoidZero, see our announcement Announcing VoidZero - Next Generation Toolchain for JavaScript.

If you have requirements for JavaScript tools at scale, please get in touch!

Contributing

We would love to have more contributors involved!

To get started, please read our Contributing Guide.

Credits

The Rolldown project is heavily inspired by:

And supported by:

  • napi-rs for Node.js add-ons in Rust via Node-API.
  • oxc for the underlying parser, resolver, and sourcemap support.

Licenses

This project is licensed under the MIT License.

This project also partially contains code derived or copied from the following projects:

Licenses of these projects are listed in THIRD-PARTY-LICENSE

Sponsors

Thanks to namespace.so for powering our CI/CD pipelines with fast, free macOS and Linux runners.

Live data via GitHub REST API · Cached 30 min · Created 18 Sept 2023