We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent facf772 commit 71ba504Copy full SHA for 71ba504
1 file changed
vite.config.ts
@@ -1,15 +1,8 @@
1
import { resolve } from 'path';
2
-import { defineConfig, type Plugin } from 'vite';
3
-import dtsPlugin, {
4
- type PluginOptions as DtsPluginOptions,
5
-} from 'vite-plugin-dts';
+import { defineConfig } from 'vite';
+import dtsPlugin from 'vite-plugin-dts';
6
import vue from '@vitejs/plugin-vue';
7
8
-const dtsOptions: DtsPluginOptions = {
9
- insertTypesEntry: true,
10
- cleanVueFileName: true,
11
-};
12
-
13
export default defineConfig({
14
resolve: {
15
alias: {
@@ -37,7 +30,13 @@ export default defineConfig({
37
30
sourcemap: true,
38
31
target: 'es2020',
39
32
},
40
- plugins: [vue(), dtsPlugin(dtsOptions) as Plugin],
33
+ plugins: [
34
+ vue(),
35
+ dtsPlugin({
36
+ insertTypesEntry: true,
+ cleanVueFileName: true,
+ }),
+ ],
41
server: {
42
open: true,
43
port: 3000,
0 commit comments