-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtsconfig.json
48 lines (48 loc) · 1.02 KB
/
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
40
41
42
43
44
45
46
47
48
{
"compilerOptions": {
"target": "esnext",
"useDefineForClassFields": true,
"module": "esnext",
"moduleResolution": "node",
"strict": true,
"jsx": "preserve",
"sourceMap": true,
"resolveJsonModule": true,
"esModuleInterop": true,
"lib": ["esnext", "dom"]
},
"references": [{ "path": "./tsconfig.node.json" }],
"types": [
"vite-svg-loader",
"vite/client",
"webpack-env",
],
"typeRoots": [
"./node_modules/@types/",
"./types"
],
// 模块名到基于 baseUrl 的路径映射的列表
"paths": {
"@/*": [
"src/*"
]
},
// 指定一个匹配列表(属于自动指定该路径下的所有ts相关文件)
"include": [
"src/**/*.ts",
"src/**/*.tsx",
"src/**/*.vue",
"tests/**/*.ts",
"tests/**/*.tsx",
"types/*.d.ts",
"types/*.ts",
"build/**/*.ts",
"build/**/*.d.ts",
"mock/**/*.ts",
"vite.config.ts"
],
// 指定一个排除列表(include的反向操作)
"exclude": [
"node_modules"
]
}