-
Notifications
You must be signed in to change notification settings - Fork 630
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix resolution edge case for package subpaths redirected by mainFields
Summary: Simplifies logic in `metro-resolver` by colocating "browser" spec resolution in `resolveModulePath`, which addresses an edge case (see test changes). Changelog: **[Fix]** Extensionless `mainFields` mappings in a `package.json` will be respected when resolving subpath package specifiers Reviewed By: robhogan Differential Revision: D43699921 fbshipit-source-id: 2e550eac3359767826715fc7d65fcb3f34013068
- Loading branch information
1 parent
4c520ed
commit 7e92227
Showing
3 changed files
with
28 additions
and
32 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