{ "compilerOptions": { // "types": [ // "leaflet" // ], "target": "ESNext", "useDefineForClassFields": true, "module": "ESNext", "lib": [ "ESNext", "DOM", "ScriptHost" ], "baseUrl": "./", "paths": { "@/*": [ "src/*" ] }, "skipLibCheck": true, /* Bundler mode */ "moduleResolution": "Node", "resolveJsonModule": true, "isolatedModules": true, "esModuleInterop": true, "jsx": "preserve", /* Linting */ "strict": true, //检查未使用的局部变量 //"noUnusedLocals": true, //检查switch有没有使用break "noFallthroughCasesInSwitch": true, //启用简单模式 const str:string = undefined | null; "strictNullChecks": false, //为发出的JavaScript文件创建源映射文件——用来指定编译时是否生成.map文件 "sourceMap": true }, "include": [ "src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue" ], "references": [ { "path": "./tsconfig.node.json" } ], "exclude": [ "node_modules", "dist" ] }