diff --git a/package.json b/package.json index 0058dd1c..3cf22ae4 100644 --- a/package.json +++ b/package.json @@ -16,4 +16,4 @@ "vite": "^2.9.5", "vue-tsc": "^0.34.7" } -} \ No newline at end of file +} diff --git a/tsconfig.json b/tsconfig.json index 24bab9a9..7b568caf 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,6 +1,7 @@ { "compilerOptions": { "target": "esnext", + /** https://vitejs.cn/guide/features.html#typescript-compiler-options */ "useDefineForClassFields": true, "module": "esnext", "moduleResolution": "node", @@ -8,13 +9,15 @@ "jsx": "preserve", "sourceMap": true, "resolveJsonModule": true, + /** https://vitejs.cn/guide/features.html#typescript-compiler-options */ "isolatedModules": true, "esModuleInterop": true, "lib": [ "esnext", "dom" ], - "skipLibCheck": true + "skipLibCheck": true, + "types": ["vite/client"] }, "include": [ "src/**/*.ts", @@ -23,4 +26,4 @@ "src/**/*.vue", "vite.config.ts" ] -} \ No newline at end of file +}