{
// 配置编译选项【假设中的】
“compilerOptions”: {
“target”: “es2016” , //es7 配置编译的标准 编译结果
“module”: “commonjs” , // 配置编译目标使用的模块标准 node环境
“lib”: [“es2016”] , // 去掉浏览器环境console则无法再用,需要安装第三方库。
“outDir”: “./dist”, // 编译输出目录
“strictNullChecks”: true, // 空类型严格检查,null 和 undefined不能复制给其他类型。
“removeComments”: true, // 编译移除注释
“noImplicitUseStrict”: true, // 导护的时候不使用严格模式
“esModuleInterop”: true, // 使用模块化标准,都是用es
“noEmitOnError”: true, // 代码报错不进行编译
“moduleResolution”: “classic”,
“strictPropertyInitiaLization” : true, // 属性严格检查
},
// 编译目录
“include” : [“./src”], // 编译scr目录
}
