edp icon indicating copy to clipboard operation
edp copied to clipboard

v1.2.0+ 版本build后有保留字的内容不会特殊处理

Open wjlotus1992 opened this issue 9 years ago • 0 comments

var map = {}; if (ie < 8) { map['for'] = 'htmlFor'; map['class'] = 'className'; } else { map['htmlFor'] = 'for'; map['className'] = 'class'; } 比如这段代码在1.2.2版本中会被压缩 .....a.for = "htmlFor".... 在ie8版本中报"缺少标识符"的错误 还有这种代码: function createPromise(resolver) { return { 'then': function (onFulfilled, onRejected) { return then(resolver, onFulfilled, onRejected); },

        'catch': function (onRejected) {
            return then(resolver, null, onRejected);
        }
    };
}

catch被压缩后也没有引号,同样报错,希望authors能尽快处理

wjlotus1992 avatar Jan 17 '17 14:01 wjlotus1992