Rspack is a high-performance web bundler written in Rust that packages JavaScript and TypeScript for web applications. It functions as an incremental build engine and a tree-shaking asset optimizer designed to reduce build times and minimize final bundle sizes for web delivery.
The project is built for compatibility with the webpack ecosystem, implementing a compatible API that allows existing plugins and configurations to work without modification. This enables the integration of community loaders and plugins while leveraging a Rust-based compilation engine.
The tool covers a broad range of build capabilities, including hot module replacement for instant code updates in the browser and module federation for sharing dependencies between separate builds at runtime. Production optimization is handled through dead code elimination and asset minification.