2021-03-01 15:26:05 +08:00
|
|
|
{
|
|
|
|
"compilerOptions": {
|
|
|
|
"target": "esnext",
|
|
|
|
"module": "esnext",
|
|
|
|
"strict": false,
|
|
|
|
"jsx": "preserve",
|
|
|
|
"importHelpers": true,
|
|
|
|
"moduleResolution": "node",
|
|
|
|
"experimentalDecorators": true,
|
|
|
|
"skipLibCheck": true,
|
|
|
|
"esModuleInterop": true,
|
2021-04-22 17:31:50 +08:00
|
|
|
"isolatedModules": true,
|
2021-03-01 15:26:05 +08:00
|
|
|
"allowSyntheticDefaultImports": true,
|
|
|
|
"forceConsistentCasingInFileNames": true,
|
|
|
|
"sourceMap": true,
|
|
|
|
"baseUrl": ".",
|
|
|
|
"allowJs": true,
|
|
|
|
"resolveJsonModule": true, // 包含导入的模块。json的扩展
|
2021-04-20 14:33:07 +08:00
|
|
|
"lib": ["dom", "esnext"],
|
2021-03-01 15:26:05 +08:00
|
|
|
"incremental": true,
|
|
|
|
"paths": {
|
2021-04-20 14:33:07 +08:00
|
|
|
"/@/*": ["src/*"],
|
|
|
|
"/#/*": ["types/*"]
|
2021-03-01 15:26:05 +08:00
|
|
|
},
|
2021-04-22 17:31:50 +08:00
|
|
|
"types": ["node", "vite/client"],
|
2021-04-20 14:33:07 +08:00
|
|
|
"typeRoots": ["./node_modules/@types/", "./types"]
|
2021-03-01 15:26:05 +08:00
|
|
|
},
|
|
|
|
"include": [
|
|
|
|
"src/**/*.ts",
|
|
|
|
"src/**/*.tsx",
|
|
|
|
"src/**/*.vue",
|
|
|
|
"tests/**/*.ts",
|
2021-04-14 16:44:58 +08:00
|
|
|
"src/utils/path.js",
|
|
|
|
"types/**/*.d.ts",
|
|
|
|
"types/**/*.ts",
|
2021-04-20 14:33:07 +08:00
|
|
|
"types/global.d.ts",
|
|
|
|
"types/shims-tsx.d.ts",
|
2021-05-27 23:36:46 +08:00
|
|
|
"types/shims-vue.d.ts",
|
|
|
|
"mock/asyncRoutes.ts"
|
2021-03-01 15:26:05 +08:00
|
|
|
],
|
2021-04-20 14:33:07 +08:00
|
|
|
"exclude": ["node_modules", "dist", "**/*.js"]
|
|
|
|
}
|