forked from XLinzexin/min-program-webpack-typescript
/
tsconfig.json
101 lines (99 loc) · 3.43 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
// {
// "compilerOptions": { //compilerOptions:编译选项,可以被忽略,这时编译器会使用默认值
// "allowSyntheticDefaultImports": true,//允许从没有设置默认导出的模块中默认导入。这并不影响代码的显示,仅为了类型检查。
// "baseUrl": "./src",//解析非相对模块名的基准目录
// "emitDecoratorMetadata": true, //给源码里的装饰器声明加上设计类型元数据
// "experimentalDecorators": true,//启用实验性的ES装饰器
// "module": "commonjs", //指定生成哪个模块系统代码
// "moduleResolution": "node", //决定如何处理模块。或者是"Node"对于Node.js/io.js,或者是"Classic"(默认)
// "noEmitHelpers": true,//不再输出文件中生成用户自定义的帮助函数代码,如__extends。
// "noImplicitAny": false, //在表达式和声明上有隐含的any类型时报错
// "sourceMap": true, //用于debug ,生成相应的.map文件
// "strictNullChecks": false,//在严格的null检查模式下,null和undefined值不包含在任何类型里,只允许用它们自己和any来赋值(有个例外,undefined可以赋值到void)。
// "target": "es5", //目标代码类型
// "paths": { //模块名到基于baseUrl的路径映射的列表
// },
// "lib": [ //编译过程中需要引入的库文件的列表
// "dom",
// "es6"
// ],
// "types": [ //要包含的类型声明文件名列表;如果指定了types,只有被列出来的包才会被包含进来
// "hammerjs",
// "node",
// "source-map",
// "uglify-js",
// "webpack"
// ]},
// "exclude": [ //如果"files"和"include"都没有被指定,编译器默认包含当前目录和子目录下所有的TypeScript文件(.ts, .d.ts 和 .tsx),排除在"exclude"里指定的文件。
// "node_modules",
// "dist"
// ],
// "awesomeTypescriptLoaderOptions": { //Typescript加载选项
// "forkChecker": true,
// "useWebpackText": true
// },
// "compileOnSave": false,
// "buildOnSave": false,
// "atom": { "rewriteTsconfig": false }
// }
// {
// "compilerOptions": {
// "target": "esnext",
// "module": "esnext",
// "jsx": "preserve",
// "importHelpers": true,
// // "moduleResolution": "node",
// "experimentalDecorators": true,
// "esModuleInterop": true,
// "allowSyntheticDefaultImports": true,
// "sourceMap": true,
// "baseUrl": ".",
// "paths": {
// "@/*": [
// "src/*"
// ]
// },
// "lib": [
// "esnext",
// "dom",
// "dom.iterable",
// "scripthost"
// ]
// },
// "include": [
// "src/**/*.ts",
// "src/**/*.tsx",
// "src/**/*.vue",
// "tests/**/*.ts",
// "tests/**/*.tsx"
// ],
// "exclude": [
// "node_modules"
// ]
// }
{
"compilerOptions": {
// "target": "es6",
"module": "esnext",
"allowJs": true,
"noImplicitAny": false,
"removeComments": true,
"importHelpers": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"experimentalDecorators": true,
"suppressExcessPropertyErrors": false,
"preserveConstEnums": true,
"sourceMap": true,
"baseUrl": ".",
"paths": {
"@/*": ["src/*"]
},
},
"include": [
"src/typings/*"
],
"exclude": [
"node_modules"
]
}