laya引擎装饰器和await的支持

laya引擎不支持 ts 装饰器和 await 语法,查了一下资料,需要修改 tsconfig.json

{
    "compilerOptions": {
        "module": "es6",
        "target": "es6",
        "noEmitHelpers": true,
        "sourceMap": true,
        "experimentalDecorators": true,
        "baseUrl": ".",
        "paths": {
            "tslib": [
                "C:/Users/Administrator/AppData/Roaming/npm/node_modules/tslib/tslib.d.ts"
            ]
        }
    },
    "exclude": [
        "node_modules"
    ]
}

新增
laya引擎装饰器和await的支持_第1张图片

你可能感兴趣的:(laya)