-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtsconfig.json
46 lines (46 loc) · 1.19 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
{
"exclude": [
"dist",
"src/assets"
],
"compileOnSave": true,
"compilerOptions": {
"target": "es5",
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": false,
"noEmit": true,
"baseUrl": ".",
"paths": { // 路径映射,相对于baseUrl
"@components/*": [
"./src/components/*"
],
"@util": [
"./src/util/*"
],
"@assets/*": [
"./src/assets/*"
],
},
"rootDirs": [
"src",
"out"
], // 将多个目录放在一个虚拟目录下,用于运行时,即编译后引入文件的位置可能发生变化,这也设置可以虚拟src和out在同一个目录下,不用再去改变路径也不会报错
"listEmittedFiles": true, // 打印输出文件
"listFiles": true, // 打印编译的文件(包括引用的声明文件)
"jsx": "react",
},
"include": ["src","src/images.d.ts"]
}