29 lines
904 B
JSON
29 lines
904 B
JSON
{
|
||
// "compilerOptions": {
|
||
// "target": "ES6",
|
||
"module": "ESNext", // 必须用 ESNext
|
||
// "esModuleInterop": true,
|
||
// "moduleResolution": "node",
|
||
// "skipLibCheck": true,
|
||
// "sourceMap": true,
|
||
// "outDir": "./dist",
|
||
// "rootDir": ".", // 改为 "." 包含所有文件
|
||
// "strict": true,
|
||
// "baseUrl": ".", // 确保路径解析正确
|
||
// "paths": {
|
||
// // 可选:自定义路径映射(如 "@/*": ["src/*"])
|
||
// }
|
||
// },
|
||
// "include": ["src/**/*", "tests/**/*"], // 包含测试文件
|
||
"compilerOptions": {
|
||
"types": ["@vitest/browser/providers/playwright"],
|
||
"resolveJsonModule": true, // 允许导入 .json 文件
|
||
"esModuleInterop": true, // 确保 CommonJS/ESM 兼容
|
||
"module": "ESNext", // 推荐使用 ESM
|
||
"moduleResolution": "Node" // 确保 Node.js 模块解析
|
||
},
|
||
"exclude": [
|
||
"node_modules",
|
||
"dist"
|
||
]
|
||
} |