-
Notifications
You must be signed in to change notification settings - Fork 0
/
tsconfig.json
42 lines (42 loc) · 1.28 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",
/** https://cn.vitejs.dev/guide/features.html#typescript-compiler-options */
"useDefineForClassFields": true,
"module": "esnext",
"moduleResolution": "bundler",
/** TS 严格模式 */
"strict": true,
"jsx": "preserve",
"jsxImportSource": "vue",
"importHelpers": true,
"experimentalDecorators": true,
"allowSyntheticDefaultImports": true,
"sourceMap": true,
"resolveJsonModule": true,
/** https://cn.vitejs.dev/guide/features.html#typescript-compiler-options */
"isolatedModules": true,
"esModuleInterop": true,
"lib": ["esnext", "dom"],
"skipLibCheck": true,
"types": ["node"],
"typeRoots": ["./node_modules/@types", "./types"],
/** baseUrl 用来告诉编译器到哪里去查找模块,使用非相对模块时必须配置此项 */
"baseUrl": "./",
/** 非相对模块导入的路径映射配置,根据 baseUrl 配置进行路径计算 */
"paths": {
"@/*": ["src/*"]
}
},
"include": ["src/**/*.d.ts", "src/**/*.tsx", "types/**/*.d.ts"],
/** 编译器默认排除的编译文件 */
"exclude": ["node_modules", "dist"],
"references": [
{
"path": "./tsconfig.app.json"
},
{
"path": "./tsconfig.node.json"
}
]
}