mirror of
https://github.com/un-pany/v3-admin-vite.git
synced 2025-04-22 03:49:19 +08:00
36 lines
949 B
JSON
36 lines
949 B
JSON
{
|
||
"compilerOptions": {
|
||
"target": "esnext",
|
||
/** https://vitejs.cn/guide/features.html#typescript-compiler-options */
|
||
"useDefineForClassFields": true,
|
||
"module": "esnext",
|
||
"moduleResolution": "node",
|
||
"strict": true,
|
||
"jsx": "preserve",
|
||
"sourceMap": true,
|
||
"resolveJsonModule": true,
|
||
/** https://vitejs.cn/guide/features.html#typescript-compiler-options */
|
||
"isolatedModules": true,
|
||
"esModuleInterop": true,
|
||
"lib": [
|
||
"esnext",
|
||
"dom"
|
||
],
|
||
"skipLibCheck": true,
|
||
"types": ["vite/client"],
|
||
/** baseUrl 用来告诉编译器到哪里去查找模块,使用非相对模块时必须配置此项 */
|
||
"baseUrl": ".",
|
||
// 非相对模块导入的路径映射配置,根据 baseUrl 配置进行路径计算
|
||
"paths": {
|
||
"@/*": ["src/*"]
|
||
},
|
||
},
|
||
"include": [
|
||
"src/**/*.ts",
|
||
"src/**/*.d.ts",
|
||
"src/**/*.tsx",
|
||
"src/**/*.vue",
|
||
"vite.config.ts"
|
||
]
|
||
}
|