Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hotfix to include react-native-windows in hasteImpl accepted paths #20007

Closed
wants to merge 1 commit into from

Conversation

hramos
Copy link
Contributor

@hramos hramos commented Jul 2, 2018

Summary:
We removed support for providesModule annotations and maintained support for Haste names in installed modules via providesModuleNodeModules, but our default hasteImpl doesn't take them into account. We need to find a better way to override core components from plugins but meanwhile this adds an exception for react-native-windows in the default hasteImpl to unblock their upgrade to the latest RC.

Fixes facebook/metro#188

Reviewed By: mjesun

Differential Revision: D8695207

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jul 2, 2018
…acebook#20007)

Summary:
Closes facebook#20007

We removed support for providesModule annotations and maintained support for Haste names in installed modules via `providesModuleNodeModules`, but our default `hasteImpl` doesn't take them into account. We need to find a better way to override core components from plugins but meanwhile this adds an exception for react-native-windows in the default `hasteImpl` to unblock their upgrade to the latest RC.

Fixes facebook/metro#188

Reviewed By: mjesun

Differential Revision: D8695207

fbshipit-source-id: e70c8649543ebfcba40f934451faf33548c3d20a
@react-native-bot react-native-bot added Missing Test Plan This PR appears to be missing a test plan. Core Team Missing Changelog This PR appears to be missing a changelog, or they are incorrectly formatted. labels Jul 2, 2018
@hramos
Copy link
Contributor Author

hramos commented Jul 2, 2018

Test passed. Closing.

@hramos hramos closed this Jul 2, 2018
facebook-github-bot pushed a commit that referenced this pull request Jul 2, 2018
…20007)

Summary:
Closes #20007

We removed support for providesModule annotations and maintained support for Haste names in installed modules via `providesModuleNodeModules`, but our default `hasteImpl` doesn't take them into account. We need to find a better way to override core components from plugins but meanwhile this adds an exception for react-native-windows in the default `hasteImpl` to unblock their upgrade to the latest RC.

Fixes facebook/metro#188

Reviewed By: mjesun

Differential Revision: D8695207

fbshipit-source-id: 2ad6cb1e93e600880a148776ac45f6ebd7d205d3
@react-native-bot
Copy link
Collaborator

This pull request was closed by @rubennorte in 5494274.

Once this commit is added to a release, you will see the corresponding version tag below the description at 5494274. If the commit has a single master tag, it is not yet part of a release.

@facebook facebook locked as resolved and limited conversation to collaborators Jul 2, 2018
@react-native-bot react-native-bot added the Merged This PR has been merged. label Jul 2, 2018
@hramos hramos deleted the export-D8695207 branch July 3, 2018 18:45
hramos pushed a commit that referenced this pull request Jul 4, 2018
…20007)

Summary:
Closes #20007

We removed support for providesModule annotations and maintained support for Haste names in installed modules via `providesModuleNodeModules`, but our default `hasteImpl` doesn't take them into account. We need to find a better way to override core components from plugins but meanwhile this adds an exception for react-native-windows in the default `hasteImpl` to unblock their upgrade to the latest RC.

Fixes facebook/metro#188

Reviewed By: mjesun

Differential Revision: D8695207

fbshipit-source-id: 2ad6cb1e93e600880a148776ac45f6ebd7d205d3
@rozele
Copy link
Contributor

rozele commented Aug 13, 2018

Thanks @hramos - what's the status update on a generalization of this? I still need a solution for the react-native-windows dev environment, where the "haste overrides" aren't necessarily in the react-native-windows folder in node_modules (they actually in the Libraries folder at the root of the project).

@hramos
Copy link
Contributor Author

hramos commented Aug 16, 2018

cc @rubennorte, original author of the diff that synced out as 5494274.

grabbou pushed a commit to react-native-community/cli that referenced this pull request Sep 26, 2018
…20007)

Summary:
Closes facebook/react-native#20007

We removed support for providesModule annotations and maintained support for Haste names in installed modules via `providesModuleNodeModules`, but our default `hasteImpl` doesn't take them into account. We need to find a better way to override core components from plugins but meanwhile this adds an exception for react-native-windows in the default `hasteImpl` to unblock their upgrade to the latest RC.

Fixes facebook/metro#188

Reviewed By: mjesun

Differential Revision: D8695207

fbshipit-source-id: 2ad6cb1e93e600880a148776ac45f6ebd7d205d3
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged This PR has been merged. Missing Changelog This PR appears to be missing a changelog, or they are incorrectly formatted. Missing Test Plan This PR appears to be missing a test plan.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants