-
Notifications
You must be signed in to change notification settings - Fork 625
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
Allow custom BABEL_ENV #364
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, let's try to land this and see what happens :D
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cpojer is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
Codecov Report
@@ Coverage Diff @@
## master #364 +/- ##
======================================
Coverage 85.3% 85.3%
======================================
Files 173 173
Lines 5341 5341
Branches 814 814
======================================
Hits 4556 4556
Misses 698 698
Partials 87 87
Continue to review full report at Codecov.
|
…ation * upstream/master: (122 commits) Bump Metro to v0.53.0 Improve flow coverage in Metro Enable platform transforms for dev too, but keep it safe for MetroResolver Use function maps to symbolicate traces Move react-native-symbolicate to metro repo Migrated Metro from babel-jest to a custom transformer React sync for revisions f24a0da...8e25ed2 Revert D14168466: Perform security fixes Adds a missing dependency to metro Bumps antd to fix missing peerdeps Updates the package.json to match the Yarn output Improve prelude code Perform security fixes metro-buck: setup __DEV__ and other variables on the global object Add README and development script (facebook#292) Allow custom BABEL_ENV (facebook#364) Update siteConfig.js (facebook#327) docs: mention lerna in CONTRIBUTING.md (facebook#338) Revert D14024934: metro: keep track of significant dependencies ordering metro-buck: Hermes: no args to async wrapper if no prefetch ...
Summary
Allows custom non-dev
BABEL_ENV
s besides'production'
. With respect to facebook/react-native#6351 (comment).Test plan
This change will break non-dev builds for people who for any reason has custom
BABEL_ENV
set but expects it to behave like'production
' (current behavior). Though it can be easily fixed either by renaming theirenv
fromproduction
to the value of customBABEL_ENV
, or by changingBABEL_ENV
from custom to'production'
.Other than this unusual case, nothing should change.