Skip to content

Commit 4378645

Browse files
committed
fix doc
1 parent 05df6c1 commit 4378645

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

website/docs/en/config/lib/redirect.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ Whether to automatically redirect the import paths of JavaScript output files.
7777
- **Type:** `boolean`
7878
- **Default:** `true`
7979

80-
When set to `true`, [resolve.alias](/config/rsbuild/resolve#resolvealias) and [resolve.aliasStrategy](/config/resolve/alias-strategy) will take effect and applied in the rewritten import path of the output file. For TypeScript projects, you only need to configure [compilerOptions.paths](https://typescriptlang.org/tsconfig#paths) in the tsconfig.json file.
80+
When set to `true`, [resolve.alias](/config/rsbuild/resolve#resolvealias) and [resolve.aliasStrategy](/config/rsbuild/resolve#aliasstrategy) will take effect and applied in the rewritten import path of the output file. For TypeScript projects, you only need to configure [compilerOptions.paths](https://typescriptlang.org/tsconfig#paths) in the tsconfig.json file.
8181

82-
When set to `false`, the import path will not be effected by [resolve.alias](/config/rsbuild/resolve#resolvealias), [resolve.aliasStrategy](/config/resolve/alias-strategy) and tsconfig.json.
82+
When set to `false`, the import path will not be effected by [resolve.alias](/config/rsbuild/resolve#resolvealias), [resolve.aliasStrategy](/config/rsbuild/resolve#aliasstrategy) and tsconfig.json.
8383

8484
### redirect.js.extension
8585

website/docs/zh/config/lib/redirect.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ const defaultRedirect = {
7777
- **类型:** `boolean`
7878
- **默认值:** `true`
7979

80-
当设置为 `true` 时,[resolve.alias](/config/rsbuild/resolve#resolvealias)[resolve.aliasStrategy](/config/resolve/alias-strategy) 将生效并应用于输出文件的重写导入路径。对于 TypeScript 项目,您只需在 tsconfig.json 文件中配置 [compilerOptions.paths](https://typescriptlang.org/tsconfig#paths)
80+
当设置为 `true` 时,[resolve.alias](/config/rsbuild/resolve#resolvealias)[resolve.aliasStrategy](/config/rsbuild/resolve#aliasstrategy) 将生效并应用于输出文件的重写导入路径。对于 TypeScript 项目,您只需在 tsconfig.json 文件中配置 [compilerOptions.paths](https://typescriptlang.org/tsconfig#paths)
8181

82-
当设置为 `false` 时,导入路径将不受 [resolve.alias](/config/rsbuild/resolve#resolvealias)[resolve.aliasStrategy](/config/resolve/alias-strategy) 和 tsconfig.json 的影响。
82+
当设置为 `false` 时,导入路径将不受 [resolve.alias](/config/rsbuild/resolve#resolvealias)[resolve.aliasStrategy](/config/rsbuild/resolve#aliasstrategy) 和 tsconfig.json 的影响。
8383

8484
### redirect.js.extension
8585

0 commit comments

Comments
 (0)