Minification fails when I try to use Ecmascript-6 features in my app.
If i try to use an arrow function:
$.get('/clients/all').done(response => {
// Do something with the response
})
I get the following error:
/* Minification failed. Returning unminified contents.
(8,45-46): run-time error JS1195: Expected expression: >
(36,6-7): run-time error JS1195: Expected expression: )
(37,1-2): run-time error JS1002: Syntax error: }
*/
And so on with other ES6 features.
Do you know an ItemTransform for ES6?