tools
Options for low-level tools.
tools.bundlerChain
tools.bundlerChain
- Type:
ModifyBundlerChainFn | ModifyBundlerChainFn[] - Default:
undefined
Modifies the Rspack configuration via rspack-chain, which provides a chainable API for rules, plugins, and optimization settings.
tools.rspack
tools.rspack
- Type:
(Rspack.Configuration | ModifyRspackConfigFn) | (Rspack.Configuration | ModifyRspackConfigFn)[] - Default:
undefined
Modifies the Rspack configuration directly, either as a configuration object (merged via rspack-merge) or a function that mutates or returns a config.
tools.swc
tools.swc
- Type:
ConfigChain<Rspack.SwcLoaderOptions> - Default:
undefined
Configures options passed to Rspack's builtin:swc-loader.