diff --git a/.github/renovate.json5 b/.github/renovate.json5 index d50bdd4b..e68500d3 100644 --- a/.github/renovate.json5 +++ b/.github/renovate.json5 @@ -72,6 +72,17 @@ matchManagers: [ 'npm' ], matchPackageNames: [ '@types/react', '@types/react-dom' ], enabled: false, + }, + // vite-plugin-dts v5 splits its implementation into a separate `unplugin-dts` package + // and exposes its types exclusively via package.json `exports` subpaths, which require + // TypeScript's `moduleResolution: "node16" | "nodenext" | "bundler"`. Our tsconfig still + // uses classic `node` resolution (see the @ts-expect-error comments in vite.config.ts), + // so v5 fails to type-check with "has no default export". Keep pinned at 4.x until we + // migrate moduleResolution. + { + matchManagers: [ 'npm' ], + matchPackageNames: [ 'vite-plugin-dts' ], + allowedVersions: '<5.0.0', } ], semanticCommits: 'enabled',