Skip to content
This repository has been 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

Closed
caccialdo opened this issue Jul 13, 2017 · 2 comments
Closed

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

caccialdo opened this issue Jul 13, 2017 · 2 comments

Comments

@caccialdo
Copy link

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']
}
@shrpne
Copy link

shrpne commented Feb 27, 2019

This PR #182 should fix it

@dima-takoy-zz
Copy link

dima-takoy-zz commented May 6, 2019

I think it can be closed now. Currently, we have mainFields.

@TrySound TrySound closed this as completed May 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants