33 lines
867 B
JSON
33 lines
867 B
JSON
|
{
|
||
|
"compilerOptions": {
|
||
|
"target": "ES2020",
|
||
|
"useDefineForClassFields": true,
|
||
|
"lib": ["ES2020", "DOM", "DOM.Iterable"],
|
||
|
"skipLibCheck": true,
|
||
|
"esModuleInterop": false,
|
||
|
"allowImportingTsExtensions": true,
|
||
|
"allowSyntheticDefaultImports": true,
|
||
|
|
||
|
/* Linting */
|
||
|
"strict": true,
|
||
|
|
||
|
/* Bundler mode */
|
||
|
"forceConsistentCasingInFileNames": true,
|
||
|
"module": "ESNext",
|
||
|
"moduleResolution": "Node",
|
||
|
"resolveJsonModule": true,
|
||
|
"isolatedModules": true,
|
||
|
"noEmit": true,
|
||
|
"jsx": "react-jsx",
|
||
|
// 解析非相对模块名的基准目录
|
||
|
"baseUrl": "./",
|
||
|
// 模块名到基于 baseUrl的路径映射的列表。
|
||
|
"paths": {
|
||
|
"@": ["src"],
|
||
|
"@/*": ["src/*"]
|
||
|
}
|
||
|
},
|
||
|
"include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "vite.config.ts"],
|
||
|
"exclude": ["node_modules", "dist", "**/*.js"]
|
||
|
}
|