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

# source.alias

> `optional` **alias?**: `Record`\<`string`, `string` | `false` | `string`\[]>

:::info 仅适用于 Rspeedy
此配置仅由 Rspeedy 的 `lynx.config.ts` 接受，Rsbuild + `pluginLynx` 不支持。请勿直接写入 `rsbuild.config.ts`，也不要传给 `pluginLynx()`。
:::

创建别名，以便更方便地 `import` 或 `require` 某些模块。

## Deprecated

请使用 [Resolve.alias](/next/zh/api/packages/rspeedy/interfaces/Resolve.md#alias) 代替。

## Default Value

```ts
undefined
```
