-
Notifications
You must be signed in to change notification settings - Fork 2
/
tsconfig.json
43 lines (43 loc) · 1.3 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": {
"declaration": false,
"module": "commonjs", //组织代码的方式
"target": "es5", //编译目标平台
"moduleResolution": "node",
"sourceMap": true, //把ts文件编译成js文件时,是否生成对应的SourceMap文件
"emitDecoratorMetadata": true, //让TypeScript支持为带有装饰器的声明生成元数据
"experimentalDecorators": true, //是否启用实验性装饰器特性
"noImplicitAny": true, //是否不忽略类型编译
"lib": [
"dom",
"es6"
],
"types": [
"node",
"core-js"
],
"typeRoot": [
"node_modules/@types",
"./node_modules/core-js"
],
"suppressImplicitAnyIndexErrors": true,
"outDir": "./dist/", //编译文件输出目录
"baseUrl": "./src", //根目录路径
"allowUnreachableCode": true
},
"include": [
"src/**/*"
],
"exclude": [
//"node_modules",
"dist",
"typings",
"typings/index.d.ts"
],
"awesomeTypescriptLoaderOptions": {
"forkChecker": true,
"useWebpackText": true
},
"compileOnSave": false,
"buildOnSave": false
}