非直接调用的类,使用类似装饰器,使得laya引擎生成bundle.js文件的时候不会裁剪该类,但是导出微信工程后,微信工程的bundle.js又将该类裁剪了。 例如下面的类 使用了@FGUIComponent laya引擎生成的bundle.js存在该类 导出微信工程后该类被裁剪掉了,这种情况要怎么避免
@FGUIComponent("ui://login")
export class TFrmLogin extends TGenFrmLogin {
onConstruct(): void {
super.onConstruct();
}
}
2 个回复
小高
赞同来自:
咸鱼一枚
赞同来自: