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