forked from readpage/undraw-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtsconfig.json
35 lines (35 loc) · 925 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
{
"compilerOptions": {
"target": "ESNext",
"useDefineForClassFields": true,
"module": "ESNext",
"moduleResolution": "Node",
"strict": true,
"jsx": "preserve",
"resolveJsonModule": true,
"isolatedModules": true,
"esModuleInterop": true,
"lib": ["ESNext", "DOM"],
"skipLibCheck": true,
"noEmit": true,
"types": ["vite/client", "unplugin-vue-define-options/macros-global"],
// 设置解析非相对模块名称的基本目录
"baseUrl": "./",
// 设置模块名到基于baseUrl的路径映射,可以设置路径别名的语法提示
"paths": {
"@/*": ["demo/*"],
"~/*": ["packages/src/*"]
},
},
"include": [
"demo/**/*.ts",
"demo/**/*.d.ts",
"demo/**/*.tsx",
"demo/**/*.vue",
"docs/**/*.ts",
"docs/**/*.d.ts",
"docs/**/*.tsx",
"docs/**/*.vue",
],
"references": [{ "path": "./tsconfig.node.json" }]
}