/rspack

The fast Rust-based web bundler with webpack-compatible API 🦀️

Primary LanguageRustMIT LicenseMIT

Rspack Banner

Rspack

discord channel npm version downloads node version license

English | 简体中文

Rspack is a high performance JavaScript bundler written in Rust. It offers strong compatibility with the webpack ecosystem, allowing for seamless replacement of webpack, and provides 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.

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
Rspack website Official documentation for Rspack
awesome-rspack A curated list of awesome things related to Rspack
rspack-examples Rspack configuration examples
rspack-sources Rust port of webpack-sources
rspack-migration-showcase Migration showcases for Rspack
rspack-compat Rspack compatible loaders and plugins examples
rsfamily-design-resources Design resources for Rspack, Rsbuild, Rspress and Rsdoctor

Contributors

Benchmark

See Benchmark.

Credits

Thanks to:

License

Rspack is MIT licensed.