close
logo
Rslib
Guide
Config
Blog
English
简体中文
Guide
Config
Blog
English
简体中文
logo
Rslib
Config Overview

Lib Configurations

lib.format
lib.bundle
lib.autoExtension
lib.autoExternal
lib.redirect
lib.syntax
lib.externalHelpers
lib.banner
lib.footer
lib.dts
lib.shims
lib.id
lib.umdName
lib.outBase

Rsbuild Configurations

logLevel
resolve
source
output
tools
plugins
📝 Edit this page on GitHub
Previous Pageoutput
Next Pageplugins

#tools

Options for low-level tools.

#tools.bundlerChain tools.bundlerChaintools.bundlerChain

rspack-chain is a utility library for configuring Rspack. By using rspack-chain, you can more easily modify and extend Rspack configurations.

#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.