Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to --release a ojet project contains javascript new ASYNC and AWAIT function?

Ajesh MFeb 1 2018 — edited Feb 1 2018

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???

Comments
Post Details
Added on Feb 1 2018
1 comment
380 views