An extremely fast JavaScript, TypeScript, JSX and CSS bundler with a CLI, JS and Go API.
web-infra-dev/rspack
A fast Rust-based web bundler that offers a webpack-compatible API and can replace webpack in existing projects.
Open-source alternative to:webpack
- Stars
- 12,968
- Forks
- 881
- Open issues
- 242
- Last commit
- yesterday
What is it?
Rspack is a web bundler written in Rust. It keeps a webpack-style API, so projects can move from webpack with limited changes, and it can use many existing webpack plugins and loaders.
The bundler includes incremental compilation for fast hot module replacement, built-in production optimizations such as tree shaking and minification, and first-class support for Module Federation. It is not tied to any frontend framework.
Rspack is part of the Rstack toolchain, which also includes Rsbuild, Rslib, Rspress, Rstest and Rslint. It is distributed as the @rspack/core npm package and as Rust crates.
Key features
- 01Webpack-compatible API that works with many existing webpack plugins and loaders.
- 02Incremental compilation for fast hot module replacement.
- 03Built-in production optimizations including tree shaking and minification.
- 04First-class support for Module Federation.
- 05Framework-agnostic, usable with React, Vue and other frameworks.
Use cases
- Speeding up builds of an existing webpack project without rewriting its configuration.
- Developing large-scale web applications that rely on Module Federation.
- Adding a fast bundler to a JavaScript or TypeScript frontend project.
Quick start
- 1
Open the example project in StackBlitz
- 2
Follow the Quick start guide on rspack.rs
In collections
Topics
FAQ
- What is rspack?
- A fast Rust-based web bundler that offers a webpack-compatible API and can replace webpack in existing projects. Rspack is a web bundler written in Rust. It keeps a webpack-style API, so projects can move from webpack with limited changes, and it can use many existing webpack plugins and loaders.
- Is rspack free to use? What license does it have?
- rspack is open source under the MIT license. Check the license terms before using it in commercial products.
- Is rspack still maintained?
- Actively maintained. The last commit to rspack was on Nov 6, 2026.
- What can I use rspack for?
- Speeding up builds of an existing webpack project without rewriting its configuration. Developing large-scale web applications that rely on Module Federation. Adding a fast bundler to a JavaScript or TypeScript frontend project.
- How do I install rspack?
- Open the example project in StackBlitz Follow the Quick start guide on rspack.rs
- Where can I get rspack?
- The source code and installation instructions are on GitHub: https://github.com/web-infra-dev/rspack
Summary generated by AI from the project's README. GitHub stats refresh daily.
Related projects
A zero-configuration build tool for the web that bundles HTML, CSS, JavaScript and assets without a config file.
A Rust-based frontend toolchain combining an npm-compatible package manager, a Turbopack-powered bundler, and a browser-capable WASM build.
An extremely fast CSS parser, transformer, bundler and minifier written in Rust, usable with Parcel, as a library, CLI or plugin.
A build analyzer for Rspack that visualizes compilation timing, output assets, and module dependencies to find build bottlenecks.
A fast all-in-one JavaScript and TypeScript toolkit: runtime, bundler, test runner, and package manager in a single executable.