Rsdoctor is a build analyzer that can visually display the build process, such as compilation time, code changes before and after compilation, module reference relationships, duplicate modules, etc.
If you need to debug the build outputs or build process, you can use Rsdoctor for troubleshooting.
Multiple Analysis Capabilities: Rsdoctor supports build artifact, build-time analysis, and anti-degradation capabilities:
Support Custom Rules: In addition to built-in build scan rules, Rsdoctor also supports users adding custom component scan rules based on the build data of Rsdoctor.
You can see more details of features from this wiki: Rsdoctor Features.
You can use Rsdoctor for Bundle Analysis in Rspack.
Rsdoctor is a build analyzer that can visually display the compilation time of each loader and plugin. See Compilation Analysis for more details.
In an Rspack-based project, you can enable Rsdoctor as follows:
RsdoctorRspackPlugin
plugin:Initialize the RsdoctorRspackPlugin plugin in the plugins section of rspack.config.js
, as shown below:
RSDOCTOR=true
env variable before the CLI command:After running the above commands, when the build is completed, it will open the build analysis page. For complete features, please refer to Rsdoctor document.
You can refer to this document options for parameter configuration of the RsdoctorRspackPlugin.