-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtsconfig.json
42 lines (42 loc) · 1.07 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
{
"compilerOptions": {
"target": "esnext",
"useDefineForClassFields": true,
"module": "esnext",
"moduleResolution": "node",
"strict": false,
"jsx": "preserve",
"sourceMap": true,
"allowJs": true,
"resolveJsonModule": true,
"isolatedModules": true,
"esModuleInterop": true,
"lib": ["esnext", "dom"],
// 跳过第三方库检查,解决打包失败
"skipLibCheck": true,
// 解析非相对模块名的基准目录
"baseUrl": "./",
// 模块名到基于 baseUrl的路径映射的列表。
"paths": {
"@": ["src"],
"@/*": ["./src/*"],
"img/*": ["./src/assets/image/*"],
"com/*": ["./src/components/*"],
"api/*": ["./src/apis/*"],
"s/*": ["./src/styles/*"],
"u/*": ["./src/utils/*"],
"v/*": ["./src/views/*"],
"types/*": ["./src/types/*"],
}
},
"include": [
"src/**/*.ts",
"src/**/*.tsx",
"src/**/*.d.ts",
"src/**/*.d.ts",
"src/**/*.vue",
"vite.config.ts",
"vite/**/*.ts",
],
"references": [{ "path": "./tsconfig.node.json" }]
}