Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Open
wjlotus1992 opened this issue Jan 17, 2017 · 0 comments
Open

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

wjlotus1992 opened this issue Jan 17, 2017 · 0 comments

Comments

@wjlotus1992
Copy link

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

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant