Skip to content

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

Description

@wjlotus1992

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能尽快处理

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions