Closed hdodov closed 6 years ago
This requires you to use a version of UglifyJS that supports ES Harmony features. Check out the README for more details.
Hi @terinjokes. I had a look to the README but I still don't know how to fix this issue. I tried installing this but didn't work:
"uglify-js": "git+https://github.com/mishoo/UglifyJS2.git#harmony"
Do we also need to modify the uglify task or just installing the new version should work automatically?
If I try to uglify this:
I get the following error:
And this is perfectly valid JavaScript. If I execute it in the console, the value of
obj
would be{key: 3}
. I use version 3.0.1 of the plugin, which is the latest.