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

# resolve.extensions

- **Type:** `string[]`
- **Default:** `['.ts', '.tsx', '.mjs', '.js', '.jsx', '.json']`

Automatically resolve file extensions when importing modules. This means you can import files without explicitly writing their extensions.

:::info
The usage of this configuration item is exactly the same as that of Rsbuild. For detailed information, please refer to [Rsbuild - resolve.extensions](https://v2.rsbuild.dev/config/resolve/extensions).
:::
:::warning
Do not enable this configuration option for SSR applications, as it will cause SSR rendering to fail.
:::
