tools

Configure the low-level tools.

tools.bundlerChain tools.bundlerChaintools.bundlerChain

rspack-chain is a utility library for configuring Rspack.

tools.cssLoader tools.cssLoadertools.cssLoader

Rsbuild uses css-loader by default to handle CSS resources. You can modify the options of css-loader through tools.cssLoader.

tools.lightningcssLoader tools.lightningcssLoadertools.lightningcssLoader

You can set the options for builtin:lightningcss-loader through tools.lightningcssLoader.

tools.postcss tools.postcsstools.postcss

Rsbuild integrates PostCSS by default, you can configure postcss-loader through tools.postcss.

tools.rspack tools.rspacktools.rspack

tools.rspack is used to configure Rspack.

tools.styleLoader tools.styleLoadertools.styleLoader

The config of style-loader can be set through tools.styleLoader.

tools.swc tools.swctools.swc

You can set the options of builtin:swc-loader through tools.swc.