Skip to content

Commit 7be37be

Browse files
committed
Fix type bundling
1 parent c894df5 commit 7be37be

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

vite.config.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ export default defineConfig({
2020
exclude: ['**/*.test.ts'],
2121
outDir: 'dist',
2222
insertTypesEntry: true,
23+
copyDtsFiles: true,
24+
beforeWriteFile(filePath, content) {
25+
return filePath.match(/\/(vite|jest)\./) ? false : { filePath, content };
26+
},
2327
}),
2428
],
2529
});

0 commit comments

Comments
 (0)