1{ 2 /* Visit https://aka.ms/tsconfig.json to read more about this file */ 3 "compilerOptions": { 4 /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */ 5 "target": "ES2015", 6 /* Specify what module code is generated. */ 7 "module": "commonjs", 8 /* use strict mode to upscale security */ 9 "alwaysStrict": false, 10 /* Generate .d.ts files from TypeScript and JavaScript files in your project. */ 11 "declaration": false, 12 /* Create source map files for emitted JavaScript files. */ 13 "sourceMap": true, 14 // remove comments 15 "removeComments": false, 16 /* Set the newline character for emitting files. */ 17 "newLine": "crlf", 18 // 编译后的js代码遵循何种规范 19 "moduleResolution": "node", 20 "esModuleInterop": true, 21 // 用于debug调试 22 "typeRoots": [ 23 "./node_modules/@types" 24 ] 25 } 26} 27