Skip to content

[question] What happens two libraries require different versions of same module? #646

@volkanunsal

Description

@volkanunsal

This is a hypothetical but I couldn't find a good answer to it and thought might ask it here. Let's say my project requires foo@0.0.2 and bar@0.0.1. In the meantime, bar requires foo@0.0.1. Which version of foo would be loaded by webpack? Would both versions be loaded? What can I do to prevent both versions from being loaded, if that is the case?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions