Skip to content

Commit fa8c4da

Browse files
committed
chore: update
1 parent 5d607b8 commit fa8c4da

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export default {
5555
};
5656
```
5757

58-
You can also use with an exclamation mark to exclude some files.
58+
You can also use with an exclamation mark to exclude some files. For example, exclude test files within the `src` folder:
5959

6060
```ts title="rslib.config.ts"
6161
export default {
@@ -77,6 +77,8 @@ export default {
7777

7878
If [DTS generation](/config/lib/dts) is enabled, remember to set [exclude](https://www.typescriptlang.org/tsconfig/#exclude) field in `tsconfig.json` to avoid generating TypeScript declaration files for the corresponding files.
7979

80+
For example, exclude test files within the `src` folder:
81+
8082
```json
8183
// tsconfig.json
8284
{

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export default {
5353
};
5454
```
5555

56-
你也可以使用感叹号来排除一些文件。
56+
你也可以使用感叹号来排除一些文件。例如,排除 `src` 文件夹中的测试文件:
5757

5858
```ts title="rslib.config.ts"
5959
export default {
@@ -75,6 +75,8 @@ export default {
7575

7676
当开启 [类型生成](/config/lib/dts) 时,记得在 `tsconfig.json` 中设置 [exclude](https://www.typescriptlang.org/tsconfig/#exclude) 字段,以避免相应的文件生成 TypeScript 类型声明文件。
7777

78+
例如,排除 `src` 文件夹中的测试文件:
79+
7880
```json
7981
// tsconfig.json
8082
{

0 commit comments

Comments
 (0)