feat(tsconfig): 启用 JSON 模块解析和 ES 模块互操作

- 添加 resolveJsonModule 选项以支持导入 JSON 文件
- 启用 esModuleInterop 以改善 CommonJS 和 ES 模块之间的兼容性
- 设置 allowSyntheticDefaultImports 允许合成默认导入
This commit is contained in:
coolxitech
2025-12-15 21:23:26 +08:00
parent 3410eeda19
commit add90c5603

View File

@@ -4,6 +4,9 @@
"compilerOptions": {
"paths": {
"@/*": ["./src/*"]
}
},
"resolveJsonModule": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true
}
}