Fast Rust-based web bundler with a webpack-compatible API
open sourceMITfree
Rspack is a fast bundler for the web, written in Rust, that modernizes the webpack API so it can replace webpack without rewriting a build. It works with webpack's plugins and loaders, has built-in incremental compilation for fast hot module replacement, first-class Module Federation support, and production optimizations such as tree shaking and minification by default. It isn't tied to any frontend framework. It's part of ByteDance's Rstack toolchain, alongside Rsbuild, Rspress and others.
Problems it solves
- webpack builds are too slow on a large frontend project
- swap webpack for something faster without rewriting my config and plugins
- a bundler with Module Federation for a micro-frontend setup
Features
- Compatible with webpack's plugins and loaders
- Fast startup and builds from a Rust core
- Built-in incremental compilation for fast hot module replacement
- First-class Module Federation support
- Tree shaking and minification built in for production
- Framework agnostic
Alternatives
The same job
These do what Rspack does.
- Vite Next Generation Frontend Tooling
- webpack A bundler for javascript and friends
- Rsbuild Rspack-powered build tool for web applications
- Parcel The zero configuration build tool for the web
- esbuild An extremely fast bundler for the web
- SWC Rust-based platform for the Web: a super-fast TypeScript and JavaScript compiler
