Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upstabilize packages features #35742
stabilize packages features #35742
Conversation
|
Review requested: |
|
|
||
| When a package has an [`"exports"`][] field, this will take precedence over the | ||
| `"main"` field when importing the package by name. | ||
|
|
GeoffreyBooth
Oct 21, 2020
Member
I think @guybedford deliberately wanted this below "exports" because we want people to be preferring "exports" over "main".
guybedford
Oct 21, 2020
Contributor
I'm not tied to the ordering, it just a suggestion previously since there was no explicit ordering (it not being alphabetical).
Trott
Oct 22, 2020
Member
Maybe the list on L825 can have its ordering stated ("In order of precedence, the possible entries are:") while the headers can be in alphabetical order?
This comment was marked as off-topic.
This comment was marked as off-topic.
|
lgtm |
|
This probably shouldn't land before the runtime deprecation in #35747 because otherwise that runtime deprecation is semver-major? |
|
@Trott the folder pathing stuff is currently no longer documented and unaffected by this change |
These features are being used in production and are ready to be considered stable. Refs: nodejs/modules#564
fdfbd1d
to
c9a55e3


These features are being used in production and are ready to be
considered stable.
Refs: nodejs/modules#564
Depends on #35741
/cc @nodejs/modules