-
-
Notifications
You must be signed in to change notification settings - Fork 179
fix(package): use exact uglify-es
version (dependencies
)
#199
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please update lock file
uglify-es
version (dependencies
)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this angular specific or did uglify-es >= v3.3.0
break something in general ? What is the root cause of this bug(s) ?
@michael-ciniawsky - Doesn't really matter. It's breaking a major integration, we will pin it in the short term & sort it out later. I'll update the lock file |
Thanks a lot @d3viant0ne |
This is not how something like that should be handled. This package just passes through uglify-es behavior. If some uglify-es version is broken for you, you can lock it's version in your application lockfile (or package.json for a library). |
@sokra I don't think there's a way for users to lock a specific version of a subdependency, at least with NPM. There are peer dependencies, but For Angular CLI users what happened is that they updated their lockfile, and got
I don't think either option is good for users. I wouldn't say The way to express that sort of relationship is peer dependencies, but I don't think that's very ergonomic. If we were to use peer dependencies for every webpack plugin then there would a lot more maintenance work involved in updating versions. Sass loader adopted that approach though (webpack-contrib/sass-loader#519). Maybe having |
FYI I opened a feature request in npm for a wait to set indirect dependency versions: npm/npm#19512 |
This is for fixing the uglify-es dependency, as the new 3.3.x versions breaks up all Angular builds.
See here for Angular and here for Angular CLI