-
Notifications
You must be signed in to change notification settings - Fork 0
/
tsconfig.json
39 lines (39 loc) · 1.11 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
{
"compilerOptions": {
"outDir": "dist", // 输出的目录
"sourceMap": true, //采用sourcemap
"target": "es2016", // 目标语法
"module": "esnext", // 模块格式
"moduleResolution": "node", // 模块解析
"strict": false, // 严格模式
"resolveJsonModule": true, // 解析json模块
"esModuleInterop": true, // 允许通过es6语法引入commonjs模块
"jsx": "preserve", // jsx不转义
"lib": [
"esnext",
"dom"
], // 支持的类库esnext及dom
"baseUrl": ".", // 当前是以该路径进行查找
"paths": {
// "@manage/*":[
// "packages/*/src",
// ], // 即以@manage开头的都去该路径下查找,是个数组
"@manage/shared/components": [
"packages/shared/components"
],
"@manage/shared/utils": [
"packages/shared/utils"
],
"@manage/shared/fetch": [
"packages/shared/fetch"
],
"@manage/shared/styles": [
"packages/shared/styles"
],
// 或者用*号处理匹配
"@manage/shared/*": [
"packages/shared/*"
]
}
}
}