CGamesClient/tsconfig.json
2025-12-23 04:35:16 +08:00

25 lines
808 B
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
/* Base configuration. Do not edit this field. */
"extends": "./temp/tsconfig.cocos.json",
/* Add your custom configuration here. */
"compilerOptions": {
"strict": false,
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
// 【关键】必须设置为 ES2015/ES2016绝对不能是 ESNext 或 ES2022+
// 这样编译器就不会尝试使用现代浏览器的 Symbol.metadata 特性
"target": "ES2015",
// 【关键】强制开启旧版装饰器Cocos 依赖此项)
"experimentalDecorators": true,
// 【关键】关闭类字段定义(防止新版标准与旧版装饰器冲突)
"useDefineForClassFields": false,
"module": "ES2015",
"lib": ["dom", "es2015", "es2016", "es2017"],
"emitDecoratorMetadata": true
}
}