Metro and Babel upgraded

Summary:
Upgraded Metro to 0.65.2 which contains the fix for regression which blocked us previously (https://github.com/facebook/metro/issues/641).
Also upgraded Babel to the latest available versions as anyway most of its packages were upgraded together with Metro.

Reviewed By: passy

Differential Revision: D26777168

fbshipit-source-id: f325e0ba46a95e15605a7b15a793d714b1027061
This commit is contained in:
Anton Nikolaev
2021-03-03 04:40:14 -08:00
committed by Facebook GitHub Bot
parent 90ac5f55a2
commit fce723eaca
7 changed files with 878 additions and 891 deletions

View File

@@ -1,13 +1,13 @@
diff --git a/node_modules/metro/src/lib/getPreludeCode.js b/node_modules/metro/src/lib/getPreludeCode.js
index 476319e..c1cd920 100644
index f73c6ec..fc313ec 100644
--- a/node_modules/metro/src/lib/getPreludeCode.js
+++ b/node_modules/metro/src/lib/getPreludeCode.js
@@ -57,7 +57,7 @@ function getPreludeCode(_ref) {
@@ -14,7 +14,7 @@ function getPreludeCode({ extraVars, isDev, globalPrefix }) {
"__BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date.now()",
`__DEV__=${String(isDev)}`
].concat(_toConsumableArray(formatExtraVars(extraVars)), [
`__DEV__=${String(isDev)}`,
...formatExtraVars(extraVars),
- "process=this.process||{}",
+ "process=process||this.process||global.process||{}",
`__METRO_GLOBAL_PREFIX__='${globalPrefix}'`
]);
];
return `var ${vars.join(",")};${processEnv(

View File

@@ -1,8 +1,8 @@
diff --git a/node_modules/metro-runtime/src/polyfills/require.js b/node_modules/metro-runtime/src/polyfills/require.js
index 8b086a6..42dee53 100644
index f9bb647..d918aa1 100644
--- a/node_modules/metro-runtime/src/polyfills/require.js
+++ b/node_modules/metro-runtime/src/polyfills/require.js
@@ -114,11 +114,6 @@ function metroRequire(moduleId) {
@@ -113,11 +113,6 @@ function metroRequire(moduleId) {
.map(id => (modules[id] ? modules[id].verboseName : "[unknown]")); // We want to show A -> B -> A:
cycle.push(cycle[0]);