Skip to content

Correct resolution with multiple correct top-level conditions #35

Open
@WilliamTomOBrien

Description

Given the ability to add a number of custom conditions, it's possible for us to find an exports field like the following:

{
    "name": "test",
    "exports": {
        "a": {
            "c": "./$a.c",
        },
        "b": {
            "d": "./$b.d",
        }
    }
}

In the case that conditions a, b, and d are true, and c is not, the exports algorithm will throw an error stating No known conditions for "." specifier in "test" package. I believe that this should resolve to ./$b.d.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions