
Rspack
English | ็ฎไฝไธญๆ
Rspack is a fast Rust-based bundler for the web. It modernizes the webpack API to enable seamless replacement of webpack while delivering lightning-fast build speeds.
โจ Features
- ๐ Fast Startup: Based on Rust, the build speed is extremely fast, bringing you the ultimate development experience.
- โก Lightning HMR: With a built-in incremental compilation mechanism, HMR is extremely fast and fully capable of developing large-scale projects.
- ๐ฆ Webpack Compatible: Compatible with plugins and loaders in the webpack ecosystem, seamlessly integrating excellent libraries built by the community.
- ๐จ Module Federation: Provide first-class support for Module Federation to facilitate the development of large-scale web applications.
- ๐ ๏ธ Production Optimization: Various optimization strategies are built in by default, such as tree shaking, minification, etc.
- ๐ฏ Framework Agnostic: Not bound to any frontend framework, ensuring enough flexibility.
Read Introduction for details.
๐ฆ Rstack
Rspack is part of Rstack, the fast, unified JavaScript toolchain for developers and agents.
| Name | Description | Version |
|---|---|---|
| Rspack | Bundler | |
| Rsbuild | Build tool | |
| Rslib | Library development tool | |
| Rspress | Static site generator | |
| Rsdoctor | Build analyzer | |
| Rstest | Testing framework | |
| Rslint | Linter |
Getting started
See Quick start.
Contribution
Please read the contributing guide and let's build Rspack together.
Code of conduct
This repo has adopted the ByteDance Open Source Code of Conduct. Please check Code of conduct for more details.
Community
Come chat with us on Discord! Rspack team and Rspack users are active there, and we're always looking for contributions.
Links
| Name | Description |
|---|---|
| awesome-rstack | A curated list of awesome things related to Rstack |
| agent-skills | A collection of Agent Skills for Rstack |
| Rspack 2.x docs | Documentation for Rspack 2.x |
| Rspack 1.x docs | Documentation for Rspack 1.x |
| Rspack 0.x docs | Documentation for Rspack 0.x version |
| rspack-dev-server | Dev server for Rspack |
| rstack-examples | Examples showcasing Rstack |
| rspack-sources | Rust port of webpack-sources |
| rstack-design-resources | Design resources for Rstack |
Contributors
Benchmarks
- See build-tools-performance for comparisons between Rspack and other tools.
- See Rspack Benchmarks for Rspack's performance trends over time.
Credits
Thanks to:
- The webpack team and community for creating a great bundler and ecosystem from which we draw a lot of inspiration.
- @sokra for the great work on the webpack project.
- @ScriptedAlchemy for creating Module Federation and helping Rspack connect with the community.
- The SWC project created by @kdy1, which powers Rspack's code parsing, transformation and minification.
- The esbuild project created by @evanw, which inspired the concurrent architecture of Rspack.
- The NAPI-RS project created by [@Brooo