Rspack

Rspack

rspack.dev

2

About this website

Rspack is a high-performance JavaScript bundler written in Rust, developed by the Web Infra team at ByteDance and designed as a drop-in replacement for webpack with full webpack API compatibility. Version 2.0 represents a major milestone with a redesigned compilation pipeline, improved incremental rebuild mechanism, and enhanced tree-shaking capabilities. Performance benchmarks demonstrate dramatic improvements: a cold build of a large application that takes webpack 21.40 seconds completes in 1.36 seconds with Rspack, while hot module replacement increments that take webpack 2.75 seconds finish in 0.16 seconds with Rspack. The parallel architecture leverages Rust native threads for module resolution, transformation, and code generation, with built-in SWC for TypeScript and JSX transpilation at Rust speed. Rspack maintains compatibility with existing webpack loaders, plugins, and configuration through a webpack-compatible API surface, enabling incremental migration where teams can swap webpack for Rspack by changing a single dependency. The broader Rstack ecosystem includes Rsbuild for zero-config application scaffolding, Rspress for documentation sites powered by MDX, Rslib for library building, Rsdoctor for bundle analysis, Rsvelte, and Rstest for testing. Notable adopters include Microsoft, Amazon, Google, Cloudflare, Alibaba, Tencent, and DeepSeek. The project is open source under the MIT license with comprehensive documentation available in both English and Chinese.

Statistics

2
Views
0
Clicks
0
Like
0
Dislike

Comments

Log In to post a comment

No comments yet. Be the first!