We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ac60818 commit e484070Copy full SHA for e484070
1 file changed
vite.config.ts
@@ -1,5 +1,5 @@
1
import { resolve } from 'path';
2
-import { defineConfig } from 'vite';
+import { defineConfig, type Plugin } from 'vite';
3
import dts, {
4
type PluginOptions as DtsPluginOptions,
5
} from 'vite-plugin-dts';
@@ -10,6 +10,8 @@ const dtsOptions: DtsPluginOptions = {
10
cleanVueFileName: true,
11
};
12
13
+const typedDts: (opts?: DtsPluginOptions) => Plugin = dts;
14
+
15
export default defineConfig({
16
resolve: {
17
alias: {
@@ -39,7 +41,7 @@ export default defineConfig({
39
41
},
40
42
plugins: [
43
vue(),
- dts(dtsOptions),
44
+ typedDts(dtsOptions),
45
],
46
server: {
47
open: true,
0 commit comments