Interface: Tools
The Tools options changes the behavior of various building tools.
Properties
bundlerChain?
optionalbundlerChain?:ToolsBundlerChainConfig
The Tools.bundlerChain changes the options of Rspack using rspack-chain.
Default Value
Example
See rspack-chain for details.
cssExtract?
optionalcssExtract?:CssExtract
The CssExtract controls the options of CssExtractRspackPlugin
Default Value
cssLoader?
optionalcssLoader?:CssLoader
The CssLoader controls the options of css-loader.
Default Value
Uses defaults derived from output.cssModules and output.sourceMap, with importLoaders set to 1 for CSS files and 2 for Sass/Less files.
Remarks
The default option is as follow:
rsdoctor?
optionalrsdoctor?:RsdoctorRspackPluginOptions
The Tools.rsdoctor controls the options of Rsdoctor.
Default Value
Remarks
Setting RSDOCTOR=true enables Rsdoctor. When it is enabled, Rspeedy merges additional plugin defaults during config normalization.
Example
- Use the built-in Rsdoctor.
See Rsdoctor - Configuration for details.
rspack?
optionalrspack?:ToolsRspackConfig
The Tools.rspack controls the options of Rspack.
Default Value
Examples
- Use object config
See Rspack - Configuration for details.
- Use function with
envutils
See Rsbuild - tools.rspack for details.
- Use function with
mergeConfigutils
See Rsbuild - tools.rspack for details.
- Use function with
appendPluginsutils
See Rsbuild - tools.rspack for details.
swc?
optionalswc?:ToolsSwcConfig
The Tools.swc controls the options of builtin:swc-loader.