最最无语的是,断点不能打在.ts里面,非得打bundle.js!!!,真不知道是啥想法
错误代码编译也能通过,修改
typescript({
check: true, //Set to false to avoid doing any diagnostic checks on the code
tsconfigOverride:{compilerOptions:{removeComments: true}}
}),[b]如果有 [/b]
async(){
await xxxx
}会报这个错误
TS2354: [31mThis syntax requires an imported helper but module 'tslib' cannot be found.
一、万年没修成功过的自定义导出类
自动添加Laya前缀问题
二、切换类库依旧报错
三、拖尾依然没提供重置方法,带拖尾的特效非得销毁吗!!!! 每次升级引擎都需要自己修改
四、2.1的代码,库升级到2.3.0beta。物理碰撞全部失效。要重新写?
五、安卓版百度小游戏如果昵称是表情包,会卡屏
//文字输出为表情的时候报错兼容
if (rect) {
if (rect[2] == -1)
rect[2] = Math.ceil((cri.width + lineWidth * 2) * this.lastScaleX);
}
var dt_w = w != 0 ? w : 1;
var dt_h = h != 0 ? h : 1;
if(rect){
dt_w = rect[2] != 0 ? rect[2] : 1;
dt_h = rect[3] != 0 ? rect[3] : 1;
}
var imgdt = rect ? (ctx.getImageData(rect[0], rect[1], dt_w, dt_h)) : (ctx.getImageData(0, 0,dt_w, dt_h));
vivo下
getStyle 有时候莫名为空
13518行
getStyle() {
this._style === SpriteStyle.EMPTY && (this._style = SpriteStyle.create());
if( this._style == null){
this._style = SpriteStyle.create()
}
return this._style;
}
core.js
vivo下getJSON报错兼容
static getJSON(key) {
if(Storage.support){
var obj = Storage.items.getItem(key);
if(obj){
return JSON.parse(obj);
}
}
return null;
// return JSON.parse(Storage.support ? Storage.items.getItem(key) : null);
}