Open
Description
Do you want to request a feature or report a bug?
feature
What is the current behavior?
Yarn hoists dependencies consistently but sometimes unpredictable.
A very common version of a package (core-js@2) can fail to hoist on top of node_modules tree if a less common package (core-js@1) got hoisted there first.
What is the expected behavior?
- Yarn can indicate that a dependency is getting hoisted too many times.
- Yarn can indicate how to fix package.json so that we get optimised hoisting
- package.json/.yarnrc can have hints for package-hoister to use as priorities