{ "compilerOptions": { // 指定编译成的版本 "target": "esnext", // 切换成即将发布的ECMA运行时行为 "useDefineForClassFields": true, // 指定ts需要包含的库 "lib": [ "esnext" ], // 指定编译后的模块系统,如commonjs,umd之类的 "module": "esnext", // 跳过库中的类型检查 "skipLibCheck": true, /* Bundler mode */ "moduleResolution": "bundler", "allowImportingTsExtensions": true, "isolatedModules": true, "moduleDetection": "force", "noEmit": true, /* Linting */ "strict": true, "noUnusedLocals": true, "noUnusedParameters": true, "noFallthroughCasesInSwitch": true, "noUncheckedSideEffectImports": true }, "include": [ "src/**/*.ts" ] }