Template
1
0
mirror of https://github.com/un-pany/v3-admin-vite.git synced 2025-04-22 11:59:19 +08:00
v3-admin-vite/tsconfig.json

31 lines
1.0 KiB
JSON
Raw Normal View History

2024-11-19 18:18:03 +08:00
// https://cn.vuejs.org/guide/typescript/overview.html#configuring-tsconfig-json
// https://cn.vitejs.dev/guide/features.html#typescript-compiler-options
2022-04-20 22:40:26 +08:00
{
"compilerOptions": {
"target": "esnext",
2024-11-18 19:40:44 +08:00
"jsx": "preserve",
"jsxImportSource": "vue",
"lib": ["esnext", "dom"],
2022-04-20 22:40:26 +08:00
"useDefineForClassFields": true,
2024-11-18 19:40:44 +08:00
"experimentalDecorators": true,
2024-11-19 18:18:03 +08:00
// baseUrl 用来告诉编译器到哪里去查找模块,使用非相对模块时必须配置此项
2024-11-18 19:40:44 +08:00
"baseUrl": ".",
2022-04-20 22:40:26 +08:00
"module": "esnext",
2023-12-12 19:01:25 +08:00
"moduleResolution": "bundler",
2024-11-19 18:18:03 +08:00
// 非相对模块导入的路径映射配置,根据 baseUrl 配置进行路径计算
"paths": { "@/*": ["src/*"] },
2022-04-20 22:40:26 +08:00
"resolveJsonModule": true,
2024-11-19 18:18:03 +08:00
"types": ["vite/client", "element-plus/global"],
// TS 严格模式
2024-11-18 19:40:44 +08:00
"strict": true,
"importHelpers": true,
"sourceMap": true,
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"isolatedModules": true,
"skipLibCheck": true
2022-04-20 22:40:26 +08:00
},
2024-11-19 18:18:03 +08:00
// 编译器默认排除的编译文件
2022-10-18 15:07:42 +08:00
"exclude": ["node_modules", "dist"]
2022-04-20 23:48:58 +08:00
}