Skip to content

Commit df0c2a3

Browse files
Update website/docs/en/guide/faq/features.mdx
Co-authored-by: Timeless0911 <[email protected]>
1 parent c4b00e0 commit df0c2a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

website/docs/en/guide/faq/features.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export default {
9797

9898
### How to additionally exclude specified dependencies when `dts.bundle` is `true`?
9999

100-
Rslib uses [rsbuild-plugin-dts](https://github.com/web-infra-dev/rslib/blob/main/packages/plugin-dts/README.md) to generate d.ts files, which supports configuration via [output.externals](/config/rsbuild/output#outputtarget) for excluding certain dependencies.
100+
Rslib uses [rsbuild-plugin-dts](https://github.com/web-infra-dev/rslib/blob/main/packages/plugin-dts/README.md) to generate d.ts files, which supports configuration via [output.externals](/config/rsbuild/output#outputtarget) for excluding certain dependencies from bundled d.ts files.
101101

102102
For example, a typical React component library often does not declare @types/react in peerDependencies but only in devDependencies. Following the [autoExternal](/config/lib/auto-external) logic for dependency handling, Rslib will attempt to bundle @types/react into the d.ts artifact during the build. However, in practice, a component library should not bundle @types/react.
103103

0 commit comments

Comments
 (0)