-
Notifications
You must be signed in to change notification settings - Fork 1
/
tsconfig.json
43 lines (43 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
{
"compilerOptions": {
// ECMAScript目标版本
"target": "esnext",
// 指定生成哪个模块系统代码
"module": "esnext",
// 是否生成source map文件
"sourceMap": true,
// 是否编译js文件
"allowJs": true,
// 是否默认禁用any
"noImplicitAny": false,
// jsx编译方式 [https://www.typescriptlang.org/docs/handbook/jsx.html]
"jsx": "preserve",
// 从tslib导入辅助工具函数
"importHelpers": true,
// 指定模块解析策略
"moduleResolution": "node",
// 启用实验性质的装饰器
"experimentalDecorators": true,
// 支持使用import d from 'cjs'的方式引入commonjs包。
"esModuleInterop": true,
// 不同方式的导出兼容
"allowSyntheticDefaultImports": true,
// 基础路径
"baseUrl": ".",
// 指定模块路径别名
"paths": {
"@/*": [
"src/*"
]
},
},
// 包含路径
"include": [
"./src/**/*",
"./test/**/*"
],
// 不包含路径
"exclude": [
"node_modules"
]
}