-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathtsconfig.json
39 lines (39 loc) · 963 Bytes
/
tsconfig.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{
"compilerOptions": {
"target": "esnext",
"useDefineForClassFields": true,
"allowSyntheticDefaultImports": true,
"allowJs": true,
"module": "esnext",
"moduleResolution": "node",
"strict": true,
"jsx": "preserve",
"sourceMap": true,
"resolveJsonModule": true,
"esModuleInterop": true,
"removeComments": true,
"noUnusedLocals": false,
"importHelpers": false, // 从 tslib 导入辅助工具函数(比如 __extends, __rest等)
"lib": ["esnext", "dom"],
"baseUrl": ".",
// "typeRoots": ["@types", "./types"],
"paths": {
"@/*": ["./src/*"]
},
"types": ["element-plus/global"]
// "types": ["vite/client", "node"]
},
"include": [
"src/**/*.ts",
"src/**/*.d.ts",
"src/**/*.jsx",
"src/**/*.tsx",
"src/**/*.vue",
"build/**/*.ts",
"build/**/*.d.ts",
"auto-import/*.d.ts",
"types/**/*.d.ts",
"types/*.d.ts",
"legacy.d.ts"
]
}