parse error on let =
ppetree opened this issue · 1 comments
ppetree commented
The source code is:
// This is the "report" button
$("#errReport").on("tap", function(){
let page = $('#errReport').data('page'); //getter
report404(page);
});
uglifyjs is failing on this line
let page = $('#errReport').data('page'); //getter
^
ERROR: Unexpected token: name «page», expected: punc «;»
srod commented
You have to use uglify-es to compress es2015+