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

Adjust hiding of require() calls for react-native #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

barbogast
Copy link
Owner

The previous code worked when the app was build in for debugging but failed
when it was build for release. This makes sure the react-native packager
ignores the require calls in both cases.

The previous code worked when the app was build in for debugging but failed
when it was build for release. This makes sure the react-native packager
ignores the require calls in both cases.
@barbogast
Copy link
Owner Author

I tested it with both build modes and everything seems fine. Thanks for your patience!

@af
Copy link

af commented Jun 16, 2017

Nice, it's actually a cleaner hack than the first one too! Please submit this to af/envalid and I'll merge it :)

@SimenB
Copy link

SimenB commented Jun 16, 2017

I agree. This is a cleaner solution (especially with a comment 😉)

@barbogast
Copy link
Owner Author

Oups, I was actually trying to send this PR to af/envalid, but somehow got confused.

@barbogast
Copy link
Owner Author

This one should be correct: af#38

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.

3 participants