2022-04-20 22:40:26 +08:00
|
|
|
|
{
|
|
|
|
|
"compilerOptions": {
|
|
|
|
|
"target": "esnext",
|
2022-07-21 16:08:43 +08:00
|
|
|
|
/** https://cn.vitejs.dev/guide/features.html#typescript-compiler-options */
|
2022-04-20 22:40:26 +08:00
|
|
|
|
"useDefineForClassFields": true,
|
|
|
|
|
"module": "esnext",
|
|
|
|
|
"moduleResolution": "node",
|
2022-07-01 16:25:51 +08:00
|
|
|
|
/** TS 严格模式 */
|
2022-04-20 22:40:26 +08:00
|
|
|
|
"strict": true,
|
|
|
|
|
"jsx": "preserve",
|
2022-04-21 12:05:43 +08:00
|
|
|
|
"importHelpers": true,
|
|
|
|
|
"experimentalDecorators": true,
|
|
|
|
|
"allowSyntheticDefaultImports": true,
|
2022-04-20 22:40:26 +08:00
|
|
|
|
"sourceMap": true,
|
|
|
|
|
"resolveJsonModule": true,
|
2022-07-21 16:08:43 +08:00
|
|
|
|
/** https://cn.vitejs.dev/guide/features.html#typescript-compiler-options */
|
2022-04-20 22:40:26 +08:00
|
|
|
|
"isolatedModules": true,
|
|
|
|
|
"esModuleInterop": true,
|
2022-10-18 15:07:42 +08:00
|
|
|
|
"lib": ["esnext", "dom"],
|
2022-04-20 23:48:58 +08:00
|
|
|
|
"skipLibCheck": true,
|
2022-04-21 12:05:43 +08:00
|
|
|
|
"types": [
|
|
|
|
|
"node",
|
|
|
|
|
"vite/client",
|
2022-07-01 16:25:51 +08:00
|
|
|
|
/** Element-Plus 的 Volar 插件支持 */
|
2022-04-21 12:22:35 +08:00
|
|
|
|
"element-plus/global"
|
2022-04-21 12:05:43 +08:00
|
|
|
|
],
|
2022-04-21 00:50:12 +08:00
|
|
|
|
/** baseUrl 用来告诉编译器到哪里去查找模块,使用非相对模块时必须配置此项 */
|
|
|
|
|
"baseUrl": ".",
|
2022-04-21 12:05:43 +08:00
|
|
|
|
/** 非相对模块导入的路径映射配置,根据 baseUrl 配置进行路径计算 */
|
2022-04-21 00:50:12 +08:00
|
|
|
|
"paths": {
|
2022-10-18 15:07:42 +08:00
|
|
|
|
"@/*": ["src/*"]
|
|
|
|
|
}
|
2022-04-20 22:40:26 +08:00
|
|
|
|
},
|
2022-10-18 15:07:42 +08:00
|
|
|
|
"include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue", "types/**/*.d.ts", "vite.config.ts"],
|
2022-04-21 12:05:43 +08:00
|
|
|
|
/** 编译器默认排除的编译文件 */
|
2022-10-18 15:07:42 +08:00
|
|
|
|
"exclude": ["node_modules", "dist"]
|
2022-04-20 23:48:58 +08:00
|
|
|
|
}
|