Rsdoctor is a build analyzer tailored for the Rspack ecosystem.
Rsdoctor is committed to being a one-stop, intelligent build analyzer that makes the build process transparent, predictable, and optimizable through visualization and smart analysis, helping development teams precisely identify bottlenecks, optimize performance, and improve engineering quality.
To debug the build outputs or build process, you can use Rsdoctor for troubleshooting.
In a Rsbuild-based project, you can enable Rsdoctor as follows:
RSDOCTOR=true
env variable before the CLI command:As Windows does not support the above usage, you can also use cross-env to set environment variables. This ensures compatibility across different systems:
After running the above commands, Rsbuild will automatically register the Rsdoctor plugin, and after the build is completed, it will open the build analysis page. For complete features, please refer to Rsdoctor document.
To configure the options provided by the Rsdoctor plugin, please manually register the Rsdoctor plugin: