Skip to content

feat: bump metro from 0.58->0.59 on 4.x - #1351

Merged
thymikee merged 1 commit into
react-native-community:4.xfrom
brentvatne:@brent/4.x-bump-metro
Feb 4, 2021
Merged

thymikee merged 1 commit into
react-native-community:4.xfrom
brentvatne:@brent/4.x-bump-metro

Conversation

@brentvatne

@brentvatne brentvatne commented Jan 21, 2021 •

Copy link
Copy Markdown
Contributor

Summary:

Context in #1348 (comment) and #1348 (comment)

Note that react-native 0.63 (which uses cli@4.x) already uses the 0.59 versions of various metro packages: https://github.com/facebook/react-native/blob/27651720b40cab564a0cbd41be56a02584e0c73a/package.json#L101-L103

Test Plan:

I initialized a new react-native@0.63 project, cherry-picked #1350 on to this branch to test it together with this, and followed the CONTRIBUTING instructions to run the local version of the CLI in the new project. I was able to successfully use this code in App.js:

try {
  require('does-not-exist');
} catch {
  console.log('failed to import');
}

Screen Shot 2021-01-20 at 9 19 42 PM

@thymikee thymikee left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In my testing this was safe to upgrade and use with 0.63, so I'm down with that, especially if Expo is also to benefit from this change

@thymikee
thymikee merged commit 8b89726 into react-native-community:4.x Feb 4, 2021
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.

2 participants