Skip to content

Fixes for latest react-native / metro-bundler#1332

Closed
tqc wants to merge 1 commit into
realm:masterfrom
tqc:rnfix
Closed

Fixes for latest react-native / metro-bundler#1332
tqc wants to merge 1 commit into
realm:masterfrom
tqc:rnfix

Conversation

@tqc

@tqc tqc commented Sep 21, 2017

Copy link
Copy Markdown

The react native packager does not support dynamic require calls (react/react-native#6391, react/metro#52). Previous versions would only fail if the dynamic require was actually called, but the latest version detects the invalid syntax during build.

This update adds a replacement entry point for react-native that does not include the node-specific code.

@bmunkholm

Copy link
Copy Markdown
Contributor

Hey @tqx!
Welcome and thanks a lot for the contribution!!!
I assume you already signed the CLA from CONTRIBUTING.md?

@ashwinphatak

Copy link
Copy Markdown
Contributor

Fixed in e1b70c2

@blagoev

blagoev commented Sep 28, 2017

Copy link
Copy Markdown
Contributor

closing this one since there is a fix for it. We could revisit how this is done in the future. @tqc has a good point of making separation between RN and node startup code

@blagoev blagoev closed this Sep 28, 2017
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Mar 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants