rspack README

The project's README from github.com/web-infra-dev/rspack. As one markdown file: README.md.

Rspack Banner

Rspack

discord channel npm version crates version downloads node version license codspeed

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

Read Introduction for details.

🦀 Rstack

Rspack is part of Rstack, the fast, unified JavaScript toolchain for developers and agents.

Name Description Version
Rspack Bundler npm version
Rsbuild Build tool npm version
Rslib Library development tool npm version
Rspress Static site generator npm version
Rsdoctor Build analyzer npm version
Rstest Testing framework npm version
Rslint Linter npm version

Getting started

Open in StackBlitz

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.

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

Credits

Thanks to:

License

Rspack is MIT licensed.

rspack (web-infra-dev/rspack)

Searching Database…

12.9K ·GitHub
这是什么?Rspack 是一个基于 Rust 编写的快速 Web 打包工具,它对 webpack 的 API 进行了现代化改造,因此可以近乎无缝地替代 webpack,同时构建速度大幅提升。
它是独立工具,还是更大工具链的一部分?Rspack 本身是打包工具,同时也是 Rstack 的一部分。Rstack 是一套更广泛的统一 JavaScript 工具链,还包括构建工具 Rsbuild、库开发工具 Rslib、静态站点生成器 Rspress、构建分析工具 Rsdoctor、测试运行器 Rstest 以及代码检查工具 Rslint。
我怎样才能在项目中把它跑起来?按照文档中的快速开始指南,将 Rspack 添加到项目中;本仓库本身使用 pnpm 构建(先运行 pnpm install,再运行 pnpm run build:cli:dev)。
我需要了解 webpack 才能使用吗?还是可以直接沿用现有的 webpack 配置?由于 Rspack 镜像了 webpack 的 API,并兼容 webpack 插件和加载器,现有的 webpack 配置和生态工具大多可以直接沿用。
它是否绑定某个特定的前端框架?不绑定。Rspack 在设计上与框架无关,不会把你限定在 React、Vue 或其他特定的前端技术栈中。
Rspack 的开发体验为什么这么快?它内置了增量编译机制,即使在大型项目中,热模块替换(HMR)也非常迅速;此外,基于 Rust 的构建能力也让冷启动构建速度很快。
Rspack 支持 Module Federation 吗?支持。它为 Module Federation 提供一流的支持,帮助构建大型、多团队协作的 Web 应用。
Rspack 底层使用什么来解析和压缩代码?它由 SWC 项目提供代码解析、转换和压缩能力,其并发架构则受到 esbuild 的启发。
内置了哪些生产环境优化?Rspack 默认启用了多项优化策略,包括摇树优化(Tree Shaking)和代码压缩。
What are similar projects?webpack, esbuild, oxc, browserify, closure-compiler, rolldown, bun, parcel
Size
122.8 MB
Stars
12.9K
Age
4y
Commits · 90 Days