diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e61764edc..e27584891 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -7337,8 +7337,8 @@ packages: vscode-uri@3.0.8: resolution: {integrity: sha512-AyFQ0EVmsOZOlAnxoFOGOq1SQDWAB7C6aqMGS23svWAllfOaxbuFvcT8D1i8z3Gyn8fraVeZNNmN6e9bxxXkKw==} - vue-component-type-helpers@3.1.0: - resolution: {integrity: sha512-cC1pYNRZkSS1iCvdlaMbbg2sjDwxX098FucEjtz9Yig73zYjWzQsnMe5M9H8dRNv55hAIDGUI29hF2BEUA4FMQ==} + vue-component-type-helpers@3.1.1: + resolution: {integrity: sha512-B0kHv7qX6E7+kdc5nsaqjdGZ1KwNKSUQDWGy7XkTYT7wFsOpkEyaJ1Vq79TjwrrtuLRgizrTV7PPuC4rRQo+vw==} vue-docgen-loader@2.0.1: resolution: {integrity: sha512-myCF4O8RZTOg29tL6ki0n5zS/U1Cuf0PivrJqKdVevx3EAC4QemuveCAi+JT3L+u8vH4eXaG8H9EYefxvj4kpg==} @@ -9623,7 +9623,7 @@ snapshots: storybook: 9.1.10(prettier@3.6.2)(vite@6.3.5(@types/node@22.18.8)(jiti@2.6.0)(lightningcss@1.30.1)(sass-embedded@1.90.0)(sass@1.90.0)(stylus@0.64.0)(terser@5.43.1)(tsx@4.20.6)(yaml@2.6.1)) type-fest: 2.19.0 vue: 3.5.22(typescript@5.9.3) - vue-component-type-helpers: 3.1.0 + vue-component-type-helpers: 3.1.1 '@svgr/babel-plugin-add-jsx-attribute@8.0.0(@babel/core@7.28.0)': dependencies: @@ -14490,7 +14490,7 @@ snapshots: vscode-uri@3.0.8: {} - vue-component-type-helpers@3.1.0: {} + vue-component-type-helpers@3.1.1: {} vue-docgen-loader@2.0.1: dependencies: diff --git a/website/docs/en/config/lib/dts.mdx b/website/docs/en/config/lib/dts.mdx index 662bca8e3..55d313ff9 100644 --- a/website/docs/en/config/lib/dts.mdx +++ b/website/docs/en/config/lib/dts.mdx @@ -221,7 +221,9 @@ When `dts.autoExtension` is set to `true`, the declaration file extension will b 1. It follows the same logic as [lib.autoExtension](/config/lib/auto-extension), but the default value is different since the declaration file extension may cause some issues with different module resolution strategies. -2. When [dts.tsgo](/config/lib/dts#dtstsgo) is enabled, if the project also enables [dts.build](/config/lib/dts#dtsbuild) or emits declaration files with different extensions to the same directory, `dts.autoExtension` may not work correctly. +2. Type declaration import extensions are controlled by the [redirect.dts.extension](/config/lib/redirect#redirectdtsextension) configuration. + +3. When [dts.tsgo](/config/lib/dts#dtstsgo) is enabled, if the project also enables [dts.build](/config/lib/dts#dtsbuild) or emits declaration files with different extensions to the same directory, `dts.autoExtension` may not work correctly. ::: diff --git a/website/docs/zh/config/lib/dts.mdx b/website/docs/zh/config/lib/dts.mdx index 3fe186905..b1f5488df 100644 --- a/website/docs/zh/config/lib/dts.mdx +++ b/website/docs/zh/config/lib/dts.mdx @@ -221,7 +221,9 @@ export default { 1. 这遵循与 [lib.autoExtension](/config/lib/auto-extension) 相同的逻辑,但默认值不同,因为类型声明文件扩展名可能会在不同的模块解析策略中造成一些问题。 -2. 当开启 [dts.tsgo](/config/lib/dts#dtstsgo) 时,如果项目同时开启了 [dts.build](/config/lib/dts#dtsbuild) 或者将不同后缀的类型声明文件输出到同一目录,`dts.autoExtension` 无法正常生效。 +2. 类型声明文件的导入路径扩展名重写由 [redirect.dts.extension](/config/lib/redirect#redirectdtsextension) 控制。 + +3. 当开启 [dts.tsgo](/config/lib/dts#dtstsgo) 时,如果项目同时开启了 [dts.build](/config/lib/dts#dtsbuild) 或者将不同后缀的类型声明文件输出到同一目录,`dts.autoExtension` 无法正常生效。 :::