[LayaAir 2.0]Laya2.2.0如何变回ES5发布
{
"compilerOptions": {
"module": "commonjs",
"target": "es5",
"noEmitHelpers": true,
"sourceMap": false
},
"exclude": [
"node_modules"
]
}
设置成commonjs和ES5之后会报编译异常 Error: Incompatible tsconfig option. Module resolves to 'CommonJS'. This is incompatible with rollup, please use 'module: "ES2015"' or 'module: "ESNext"'.
"compilerOptions": {
"module": "commonjs",
"target": "es5",
"noEmitHelpers": true,
"sourceMap": false
},
"exclude": [
"node_modules"
]
}
设置成commonjs和ES5之后会报编译异常 Error: Incompatible tsconfig option. Module resolves to 'CommonJS'. This is incompatible with rollup, please use 'module: "ES2015"' or 'module: "ESNext"'.
没有找到相关结果
已邀请:
要回复问题请先登录
1 个回复
kylin9718
赞同来自:
如果有需求,可以试试成熟的第三方方案,已经有公司实现了。