更改为es2020模块适应Cocos/laya引擎

This commit is contained in:
YHH
2025-06-09 10:42:19 +08:00
parent 35ca1dd7ea
commit ce64de5b3d
8 changed files with 1706 additions and 113 deletions

View File

@@ -1,7 +1,7 @@
{
"compilerOptions": {
"target": "ES2020",
"module": "CommonJS",
"module": "ES2020",
"moduleResolution": "node",
"lib": ["ES2020", "DOM"],
"outDir": "./bin",
@@ -27,7 +27,10 @@
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"importHelpers": false,
"downlevelIteration": true
"downlevelIteration": true,
"isolatedModules": false,
"allowJs": true,
"resolveJsonModule": true
},
"include": [
"src/**/*"