Files
cut-abstractions/tsconfig.json

29 lines
904 B
JSON
Raw Permalink Normal View History

2025-06-24 11:48:26 +08:00
{
2025-07-14 16:04:08 +08:00
// "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/**/*"], // 包含测试文件
2025-06-24 11:48:26 +08:00
"compilerOptions": {
2025-07-15 10:56:24 +08:00
"types": ["@vitest/browser/providers/playwright"],
2025-07-14 16:04:08 +08:00
"resolveJsonModule": true, // 允许导入 .json 文件
"esModuleInterop": true, // 确保 CommonJS/ESM 兼容
"module": "ESNext", // 推荐使用 ESM
"moduleResolution": "Node" // 确保 Node.js 模块解析
},
"exclude": [
"node_modules",
"dist"
]
}