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
Eghes
source
to share
2 answers
UglifyJS introduced async / await support at uglify-es@3.0.17 ( https://github.com/mishoo/UglifyJS2/issues/1789 )
+2
Eghes
source
to share
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:
- https://github.com/mishoo/UglifyJS2/issues/448
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:
- minify es2017 with gulp
-1
rsp
source
to share