For AI agents: the complete documentation index is available at https://rstest.rs/llms.txt, the full documentation bundle is available at https://rstest.rs/llms-full.txt, and this page is available as Markdown at https://rstest.rs/config/build/tools.md.
close
  • English
  • tools

    Options for low-level tools.

    tools.bundlerChain tools.bundlerChaintools.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.rspacktools.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.swctools.swc

    • Type: ConfigChain<Rspack.SwcLoaderOptions>
    • Default: undefined

    Configures options passed to Rspack's builtin:swc-loader.