Javascript minifier supports ES2017 async / await feature

Currently displayed as UglifyJS2 and Google Closure does not support JavaScript scripting, including using async / await without forwarding them.

Is there a way or any minifier to have these JavaScript minified without having to forward them?

+3


source to share


2 answers


UglifyJS introduced async / await support at uglify-es@3.0.17 ( https://github.com/mishoo/UglifyJS2/issues/1789 )



+2


source


Not yet. Right now, to minify your code, you'll need to port it first.

There is an open issue in the UglifyJS2 repository - Harmony # 448 support:



You can track the progress of this problem. Hopefully support will be added.

If you want to add a transpilation step, see the following answer:

-1


source







All Articles