some es6 features are not understood by grunt uglify js?

前端 未结 5 1660
眼角桃花
眼角桃花 2020-12-11 00:41

I used grunt-uglify in my project and I\'m working with es6. for some es6 features, such as fat arrow function, it\'s throwing an error. I think the uglify don\'t understant

5条回答
  •  孤街浪徒
    2020-12-11 01:14

    A Grunt plugin ES6 parser, mangler/compressor and beautifier toolkit for ES6+ is now available:

    https://github.com/adascal/grunt-terser

    Great job, it just works as expected.

    The harmony branch of grunt-contrib-uglify is deprecated, it's not a sustainable solution.

提交回复
热议问题