terinjokes/gulp-uglify

Found a stupid behavior: unnecessary compilation and cause some error

yesongling opened this issue · 2 comments

source
image

compilation
image

you know arguments object is not a real Javascript Array type, so use arguments[0] cannot get the first element of arguments object. but actually the gulp-uglify compress it from arguments['0'] to arguments[0]. that is the problem.

i can solve this problem by passing parameters instead, but i think it is still a compress issue

OK, thanks