Use Rsdoctor
Rsdoctor is a build analyzer tailored for the Rspack ecosystem.
Rsdoctor aims to be a one-stop, intelligent build analyzer that makes the build process transparent, predictable, and optimizable through visualization and smart analysis, helping teams pinpoint bottlenecks, improve performance, and raise engineering quality.
Use Rsdoctor to debug build outputs or the build process.
Quick start
In an Rsbuild project, enable Rsdoctor as follows:
- Install the Rsdoctor plugin:
- Set the
RSDOCTOR=trueenvironment variable before running the CLI command:
Because Windows does not support this syntax, you can use cross-env to set environment variables across different systems:
After running these scripts, Rsbuild automatically registers the Rsdoctor plugin and opens the build analysis page when the build finishes. See the Rsdoctor documentation for all features.
Options
To configure the options exposed by the Rsdoctor plugin, manually register the plugin:

