breaking: Upgrade metro dependencies to 0.74.0 #1789
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary:
Upgrades Metro dependencies to 0.74.0. This is a major release due to the removal of @babel/plugin-transform-template-literals and the removal of the
postProcessBundleSourcemap
config option. It also brings performance improvements to AST processing and Fast Refresh responsiveness.Per the release notes shared below, I am suggesting that this is a breaking change for the next RN CLI release.
Reminder: When React Native updates the CLI to a version that depends on metro 0.74.0, it must also update metro-runtime etc to 0.74.0 in the same commit.
Metro release notes
postProcessBundleSourcemap
from config (facebook/metro@339794e)find
crawler on Windows (facebook/metro@735aa9f)Full changelog between 0.73.7 (latest version in cli-plugin-metro #1787) and 0.74.0: https://github.com/facebook/metro/compare/v0.73.7..v0.74.0
Windows hotfix was previously merged
Note that the following changelog items were hotfixed by @robhogan in metro 0.73.7 and are already present in RN CLI as of #1787:
Test Plan:
yarn
.yarn test
.