can not support es6 minification after upgrade to 0.4.6 #49
Comments
Duplicate of #32. See #32 (comment) for a workaround. |
this is no duplicate.. the workaround doesn't work anymore |
Yup this is very unfortunate. Patch version breaking stuff... :( https://travis-ci.org/Hotell/typescript-lib-starter/builds/244709499?utm_source=github_status&utm_medium=notification |
It is a duplicate. The workaround doesn't work exactly as noted there anymore, but if you change |
I don't get it. |
...
|
That is the |
It is a workaround, because it works. This is the exact same workaround as posted in #32, with |
There was a better workaround, just run the |
@pkeuter This is not about the regular versions, but about the harmony branch. If uglifyjs-webpack-plugin states regular 2.8.29 as dependency, npm doesn't care if you have the harmony branch as dependency set. |
@kurtextrem I know this is about the harmony branch, but changing the yarn.lock file as mentioned before, will let this plugin use the older version of the harmony branch of UglifyJS. Again: it's not a brilliant "solution", but it fixes the build for me. |
Will be fixed by #63 soon, currently ES2015 minification isn't supported directly 😞 |
The other question is, why is a patch version breaking things? Just by removing this line: https://github.com/webpack-contrib/uglifyjs-webpack-plugin/blob/master/package.json#L54 this whole issue would be fixed again. |
@kurtextrem |
@kurtextrem also note that for <1.0.0, semver guarantees don't exist. |
the
0.4.6
version move theuglify2
todependencies
, so I can't specify theuglify2
version throughyarn add git://github.com/mishoo/UglifyJS2#harmony-v2.8.22 --dev
. cause the plugin will use its own dependency -uglify-js^2.8.29
.The text was updated successfully, but these errors were encountered: