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

Add workaround for minification quirk in Metro Bundler #737

Merged
merged 2 commits into from
Apr 22, 2020

Conversation

kitten
Copy link
Member

@kitten kitten commented Apr 22, 2020

Fix #736

Work around a quirk in Metro Bundler which leads to incorrect minification due to a missing hoisted variable when a process.env.NODE_ENV if-clause is removed.

This happens due to variable re-use, and Metro isn't equipped to hoist variables itself.

@changeset-bot
Copy link

changeset-bot bot commented Apr 22, 2020

🦋 Changeset is good to go

Latest commit: 48f86fd

We got this.

This PR includes changesets to release 1 package
Name Type
@urql/core 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

@kitten kitten merged commit 67db164 into master Apr 22, 2020
@kitten kitten deleted the fix/metro-minification-quirk branch April 22, 2020 13:43
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.

Broken production with Metro bundler (ReferenceError)
2 participants