Skip to content

Commit 03eedf5

Browse files
committed
clean
1 parent f52668d commit 03eedf5

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

website/docs/en/config/lib/out-base.mdx

-2
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,4 @@ dist
5555

5656
When the project needs to generate DTS type declaration files, to ensure that the generated DTS files and JS files maintain a consistent output directory structure, if you modify the `outBase` configuration, you need to also modify the [rootDir](https://www.typescriptlang.org/tsconfig/rootDir.html) in `tsconfig.json` to the same path.
5757

58-
If `outBase` is not configured, both Rslib and TypeScript will use the lowest common ancestor of all entry file paths as the output directory by default, so there is no need to additionally configure [rootDir](https://www.typescriptlang.org/tsconfig/rootDir.html).
59-
6058
:::

website/docs/zh/config/lib/out-base.mdx

-2
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,4 @@ dist
5555

5656
当项目需要生成 DTS 类型声明文件时,为了保证生成的 DTS 文件与 JS 文件保持一致的输出目录结构,如果修改了 `outBase` 配置,需要同时修改 `tsconfig.json` 中的 [rootDir](https://www.typescriptlang.org/tsconfig/rootDir.html) 为相同的路径。
5757

58-
在没有配置 `outBase` 的情况下,Rslib 与 TypeScript 默认都会使用所有入口文件路径的最近公共祖先作为输出目录,所以不需要额外配置 [rootDir](https://www.typescriptlang.org/tsconfig/rootDir.html)
59-
6058
:::

0 commit comments

Comments
 (0)