-
Notifications
You must be signed in to change notification settings - Fork 637
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for "exports" root subpath array shorthand
Summary: Adds support for the `"exports"` root value being an array of strings, an edge-case legacy usage that technically remains in the Node.js 19.x spec — see [`"exports"` field (Type)](https://nodejs.org/docs/latest-v19.x/api/packages.html#exports). Behaviour: ```js "exports": [ "./lib/index.js" ], ``` expands to ```js "exports": { "./lib/index.js": "./lib/index.js" }, ``` Changelog: **[Experimental]** Add compatibility with legacy Node.js "exports" array formats Reviewed By: jacdebug Differential Revision: D44338043 fbshipit-source-id: e9e719358c2610f4ae6d120d8312fcc647727da4
- Loading branch information
1 parent
4002576
commit f321cff
Showing
3 changed files
with
44 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters