We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5db29f9 commit 1c4e960Copy full SHA for 1c4e960
vite.config.ts
@@ -91,6 +91,14 @@ export default defineConfig({
91
},
92
plugins: [
93
dts({
94
+ afterBuild: async () => {
95
+ await fs.writeFile(
96
+ 'dist/index.d.ts',
97
+ (await fs.readFile('dist/index.d.ts'))
98
+ .toString()
99
+ .replace(/\nexport .+/, '') + 'export = _default',
100
+ )
101
+ },
102
include: [
103
path.join(__dirname, 'index.ts'),
104
path.join(__dirname, 'typings'),
0 commit comments