-
Notifications
You must be signed in to change notification settings - Fork 631
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Package deduplication #350
Comments
When I disable
This comment explains why using I propose the following behavior for package deduplication:
The developer is responsible for ensuring only one version of a package exists in the bundle. Metro should have no opinion on the matter. Note: I wouldn't be against an option that tells Metro to emit warnings when multiple versions of the same package exist, but it should definitely be opt-in. |
Alternatively, we could add an option to |
Packages with the same name/version pair are deduplicated. Closes facebook#350
Packages with the same name/version pair are deduplicated. Closes facebook#350
Packages with the same name/version pair are deduplicated. Closes facebook#350
Packages with the same name/version pair are deduplicated. Closes facebook#350
@aleclarson Any updates on this PR? |
Is this a feature request? Yes
I often work on multiple packages at the same time. When two of these "locally developed" packages have the same exact dependency, I expect Metro to "deduplicate" the dependency instead of throwing.
Currently, the only workaround is to install everything into a flattened
node_modules
in the project root. This isn't practical, because I use symlinks during development (which is why I implemented #257).The text was updated successfully, but these errors were encountered: