> For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt.

# tools.rspack

- **Type:** `Rspack.Configuration | Function | undefined`
- **Default:** `undefined`

`tools.rspack` is used to configure [Rspack](https://rspack.rs/).

:::info
The usage of this configuration item is exactly the same as that of Rsbuild. For detailed information, please refer to [Rsbuild - tools.rspack](https://v2.rsbuild.dev/config/tools/rspack).
:::