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.
For guide level documentation, please refer to the Rspack Guide.
Example
Rspack uses tokio as the runtime for async operations. Here's an example of how to use with Compiler:
[]
= { = "1", = ["full"] }
= "0.3"
= "0.3"
use PathBuf;
use ;
use Compiler;
async
Stability
This crate and the dependencies that this crate are relying on are not stable yet. The API may change at any time. We do not guarantee any backward compatibility at the moment.
Features
Currently, there's still alot of features that are not implemented yet. Here's a list of features that are not implemented yet:
-
CompilerBuilderAPI -
SplitChunksPluginAPI -
BundlerInfoPluginAPI -
StatsPrinterAPI - Stable
CompilerAPI - Stable
CompilationAPI - Rust Plugin for Rspack
- ...
To track the current stats for API, please refer to this GitHub issue.