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

42 lines
1.2 KiB
JSON
Raw Normal View History

2024-11-21 19:52:07 +08:00
// https://www.typescriptlang.org/tsconfig
2024-11-20 15:40:24 +08:00
// https://cn.vuejs.org/guide/typescript/overview#configuring-tsconfig-json
// https://cn.vite.dev/guide/features#typescript-compiler-options
2024-11-21 19:52:07 +08:00
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"],
2024-11-21 14:44:19 +08:00
// 允许 JS
"allowJs": true,
2024-11-19 18:18:03 +08:00
// 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-21 19:52:07 +08:00
// 需要被编译的文件列表
"include": [
"**/*.ts",
"**/*.tsx",
"**/*.vue",
"**/*.d.ts"
],
// 从编译中排除的文件列表
2022-10-18 15:07:42 +08:00
"exclude": ["node_modules", "dist"]
2022-04-20 23:48:58 +08:00
}