Project code contains new javascript ASYNC and AWAIT function.
I'm able to build and run the project with the command ojet serve and ojet build.
But when i tried to use the: ojet serve --release or ojet build --release.
I'm getting the error during running uglify tasks..... { SyntaxError: Unexpected token: keyword (function)
at JS_Parse_Error.get (eval at <anonymous> ... /uglify-js/tools/node.js:27:1)
Please guide me how to compile the project, done some research and found that Uglify-js only support ES5 does not support ES6 , is that relevant.
If so then how to bypass during compilation and add other library Uglify-es in place of the older version.
Or there is another way around???