Skip to content
This repository was archived by the owner on Aug 4, 2021. It is now read-only.
This repository was archived by the owner on Aug 4, 2021. It is now read-only.

Entry field from package.json order of preference isn't clear #109

@caccialdo

Description

@caccialdo

From looking at the options documentation, it is not clear in which order fields inside package.json will be chosen.

IMO organising the options like this would help make the distinction clearer:

{
  main: true,
  jsnext: true,
  browser: true
}
// vs.
{
  entryFields: ['main', 'jsnext:main', 'browser'] // Default to ['main']
}

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