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

fix: support non-classic paths to HMRClient from react-native #499

Merged
merged 1 commit into from
Feb 9, 2024

Conversation

jbroma
Copy link
Member

@jbroma jbroma commented Feb 9, 2024

Summary

When using pnpm or yarn with pnpm linker, the path to react-native can be different:

yarn (with pnpm linker):

react-native-virtual-38652004f3/package/Libraries/Utilities/HMRClient.js

pnpm:

[email protected]_@[email protected]_@[email protected][email protected]/node_modules/react-native/Libraries/Utilities/HMRClient.js

This change allows to match these additional cases as well and include DevServerClient from 'Re.Pack' properly.

Pretty sure we don't need to make it any more stricter than this, the chance of collision with something else is close to 0

Test plan

  • - tested on TesterApp with pnpm

Copy link

changeset-bot bot commented Feb 9, 2024

🦋 Changeset detected

Latest commit: 4b0a9f7

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@callstack/repack Patch
testerapp Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@jbroma jbroma merged commit ee9a5fe into v4 Feb 9, 2024
3 checks passed
@jbroma jbroma deleted the hmrclient-fix branch February 9, 2024 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants