30 lines
775 B
JSON
30 lines
775 B
JSON
|
|
{
|
||
|
|
"compilerOptions": {
|
||
|
|
"target": "ES2020",
|
||
|
|
"useDefineForClassFields": true,
|
||
|
|
"module": "ESNext",
|
||
|
|
"lib": ["ES2020", "DOM", "DOM.Iterable"],
|
||
|
|
"skipLibCheck": true,
|
||
|
|
|
||
|
|
/* 模块解析 */
|
||
|
|
"moduleResolution": "bundler", // Vite 推荐 bundler
|
||
|
|
"allowImportingTsExtensions": true,
|
||
|
|
"resolveJsonModule": true,
|
||
|
|
"isolatedModules": true,
|
||
|
|
"noEmit": true,
|
||
|
|
|
||
|
|
/* 别名 */
|
||
|
|
"baseUrl": "./",
|
||
|
|
"paths": {
|
||
|
|
"@/utils/*": ["utils/*"],
|
||
|
|
"@/*": ["src/*"]
|
||
|
|
},
|
||
|
|
|
||
|
|
/* 类型 */
|
||
|
|
"types": ["vite/client"],
|
||
|
|
"strict": false,
|
||
|
|
"esModuleInterop": true
|
||
|
|
},
|
||
|
|
"include": ["src/**/*", "src/typings/**/*", "utils/**/*"],
|
||
|
|
"references": [{ "path": "./tsconfig.node.json" }]
|
||
|
|
}
|