gruntjs / grunt-contrib-requirejs

Optimize RequireJS projects using r.js.
http://gruntjs.com/
MIT License
504 stars 105 forks source link

Arrow functions #121

Closed nelson777 closed 7 years ago

nelson777 commented 7 years ago

I'm getting an error when using arrow functions:

Error: Cannot uglify file: /home/77363698953/dados/des/js/iDMT/www/js/prj.min.js. Skipping it. Error is: SyntaxError: Unexpected token: operator (>) (line: 2720, col: 11, pos: 616843)

I think this is somewhat related with UglifyJs version ? Does this mean I can't use arrow functions ?

nelsieborja commented 7 years ago

It seems you are using latest JS.. Check here it may also be your solution.

nelson777 commented 7 years ago

Worked great thanks. Closing as there is another topic on this subject.