Skip to content

conditionNames defaults to ["node"] according to docs, but possibly doesn't actually #358

Closed
@43081j

Description

@43081j

the readme specifies:

| conditionNames | ["node"] | A list of exports field condition names |

however:

conditionNames: new Set(options.conditionNames),

seems here we don't actually default the condition names array to anything, so later on the various plugins receive and empty set.

should it possibly be this instead:

conditionNames: new Set(options.conditionNames || ['node']),

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