RsdoctorRspackPlugin
class are exported by @rsdoctor/rspack-plugin
, and the option is RsdoctorRspackPluginOptions.
RsdoctorWebpackPlugin
class are exported by @rsdoctor/webpack-plugin
, and the option is RsdoctorWebpackPluginOptions.
Type: Object
This is the options for the RsdoctorWebpackPlugin and RsdoctorRspackPlugin. It contains these properties:
boolean
true
false
Whether to automatically open the Rsdoctor report page. If you do not need to view the analysis report provided by Rsdoctor in the browser, you can enable this configuration item.
true
['loader', 'plugins', 'bundle']
If an "out of memory" error occurs, you can try the following:
The features
attribute is used to analyze the function switches, and the specific functional items are as follows:
Therefore, the default configuration enables bundle analysis capabilities and Loader and Plugin build-time analysis. The Resolver analysis capability is not enabled, and Rspack does not currently support Resolver analysis capabilities.
features
is set as an Array
, it will open the features which you define in this array only.features
is set as an Object
, it will close the features which you set the value is false
.Type: { noModuleSource?: boolean; noAssetsAndModuleSource?: boolean }
Optional: true
Default: undefined
Description
选择输出的分析数据:
Select the output analysis data:
undefined is all complete data;
noModuleSource: true is the output of data other than module code; Module code is the packaged module code of a file disassembled in the Bundle.
noAssetsAndModuleSource: true is the output of data other than module code and Assets product code.
Example
Type: boolean
Optional: true
Default: false
Description
开启或关闭需要 tos 上传, true 是关闭 tos 上传,false 是开启 tos 上传。
Turn tos upload on or off. True is to turn off tos upload, and false is tos upload on.
Example