Skip to content

Commit a93d589

Browse files
ajrothwellclaude
andcommitted
fix: generate .d.ts type declarations in build output
vite-plugin-dts needs explicit tsconfigPath to resolve types correctly with Vue's project-references tsconfig setup. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 5fad93a commit a93d589

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import dts from "vite-plugin-dts";
88

99
// https://vite.dev/config/
1010
export default defineConfig(({ mode }) => ({
11-
plugins: [vue(), vueDevTools(), dts({ include: ["src"] })],
11+
plugins: [vue(), vueDevTools(), dts({ include: ["src"], tsconfigPath: "./tsconfig.app.json" })],
1212
resolve: {
1313
alias: {
1414
"@": fileURLToPath(new URL("./src", import.meta.url)),

0 commit comments

Comments
 (0)