Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions website/docs/en/config/lib/bundle.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,20 @@ export default {
};
```

::: note

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.

```json
// tsconfig.json
{
"include": ["src"],
"exclude": ["src/**/foo.*"]
}
```

:::

## Example

For below file structure of source code:
Expand Down
14 changes: 14 additions & 0 deletions website/docs/zh/config/lib/bundle.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,20 @@ export default {
};
```

::: note

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

```json
// tsconfig.json
{
"include": ["src"],
"exclude": ["src/**/foo.*"]
}
```

:::

## Example

对于以下的源代码文件结构:
Expand Down
Loading