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

Allow custom BABEL_ENV #364

Closed
wants to merge 1 commit into from

Conversation

lebedev
Copy link
Contributor

@lebedev lebedev commented Feb 25, 2019

Summary

Allows custom non-dev BABEL_ENVs 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 their env from production to the value of custom BABEL_ENV, or by changing BABEL_ENV from custom to 'production'.

Other than this unusual case, nothing should change.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Feb 25, 2019
@lebedev
Copy link
Contributor Author

lebedev commented Feb 25, 2019

Supersedes #183.

@cpojer please take a look.

Copy link
Contributor

@cpojer cpojer left a 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

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a 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-io
Copy link

Codecov Report

Merging #364 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          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
Impacted Files Coverage Δ
.../metro-react-native-babel-transformer/src/index.js 94% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7e372db...4d38af7. Read the comment docs.

@lebedev lebedev deleted the allow-custom-BABEL_ENV branch February 25, 2019 10:25
thymikee added a commit to thymikee/metro that referenced this pull request Mar 3, 2019
…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
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants