mirror of
https://github.com/setube/ogame-vue-ts.git
synced 2026-05-11 23:45:11 +08:00
feat(tsconfig): 启用 JSON 模块解析和 ES 模块互操作
- 添加 resolveJsonModule 选项以支持导入 JSON 文件 - 启用 esModuleInterop 以改善 CommonJS 和 ES 模块之间的兼容性 - 设置 allowSyntheticDefaultImports 允许合成默认导入
This commit is contained in:
@@ -4,6 +4,9 @@
|
||||
"compilerOptions": {
|
||||
"paths": {
|
||||
"@/*": ["./src/*"]
|
||||
}
|
||||
},
|
||||
"resolveJsonModule": true,
|
||||
"esModuleInterop": true,
|
||||
"allowSyntheticDefaultImports": true
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user