summaryrefslogtreecommitdiff
path: root/tsconfig.json
diff options
context:
space:
mode:
authorpany <[email protected]>2022-04-20 23:48:58 +0800
committerpany <[email protected]>2022-04-20 23:48:58 +0800
commitf600209445151c7d3e9cfe31e929e95b0bcd65ca (patch)
treec4c608664af4e06b282afccf6011164c45b024fc /tsconfig.json
parent9ca9834608017283fae3fa9d914f095d3fa09590 (diff)
chore: tsconfig
Diffstat (limited to 'tsconfig.json')
-rw-r--r--tsconfig.json7
1 files changed, 5 insertions, 2 deletions
diff --git a/tsconfig.json b/tsconfig.json
index 24bab9a..7b568ca 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
+}