Overview
RsdoctorRspackPlugin
The RsdoctorRspackPlugin class is exported by @rsdoctor/rspack-plugin, and the configuration options are RsdoctorRspackPluginOptions.
RsdoctorWebpackPlugin
The RsdoctorWebpackPlugin class is exported by @rsdoctor/webpack-plugin, and the configuration options are RsdoctorWebpackPluginOptions.
Options
Type: Object
This Options object is the configuration for RsdoctorRspackPlugin and RsdoctorWebpackPlugin . It contains the following properties:
- disableClientServer - Client Service Control: Whether to not automatically open the Rsdoctor report service after analysis is complete.
- experiments - Experimental Features Configuration: Enable experimental features for Rspack plugins, such as native plugin performance optimization.
- features - Feature Toggle Configuration: Control various analysis features of Rsdoctor, such as loader analysis, bundle analysis, rule checking, etc.
- output - Output Related Configuration: Control report output format, directory and other options, including mode, options, reportCodeType, etc.
- port - Service Port Configuration: Set the port number for the Rsdoctor development server, used for report preview during local development.
- supports - Feature Support Configuration: Enable compatibility support for specific build tools, such as BannerPlugin, etc.
- brief - Brief Mode Configuration: Control the generation of brief mode reports, including HTML filename and whether to generate JSON data files.
- mode - Build Report Data Output Mode: Select the output mode for reports, supporting normal (normal mode) and brief (brief mode).
RsdoctorRspackPluginOptions
RsdoctorWebpackPluginOptions
RsdoctorWebpackPlugin is equivalent to Omit<RsdoctorRspackPluginOptions, 'experiments'> type.

