javascript - Grunt / NPM Uglify doesn't like this JS line -


when run grunt build uglify fails here:

yz = d3.range(n).map(function() { return k.map(x => x[1]); }),

the error says:

warning: uglification failed. unexpected token: operator (>).

i've started seeing => syntax in js , don't use myself (this use case suggestion)... there way handle faulty statement? or upgrade "grunt-contrib-uglify": "^0.7.0" ?

=> es6 arrow functions need use https://www.npmjs.com/package/uglify-es it.
can use harmony branch of grunt-contrib-uglify uses uglify-es.


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -