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:
committed by
Facebook GitHub Bot
parent
90ac5f55a2
commit
fce723eaca
13
desktop/patches/metro+0.65.2.patch
Normal file
13
desktop/patches/metro+0.65.2.patch
Normal file
@@ -0,0 +1,13 @@
|
||||
diff --git a/node_modules/metro/src/lib/getPreludeCode.js b/node_modules/metro/src/lib/getPreludeCode.js
|
||||
index f73c6ec..fc313ec 100644
|
||||
--- a/node_modules/metro/src/lib/getPreludeCode.js
|
||||
+++ b/node_modules/metro/src/lib/getPreludeCode.js
|
||||
@@ -14,7 +14,7 @@ function getPreludeCode({ extraVars, isDev, globalPrefix }) {
|
||||
"__BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date.now()",
|
||||
`__DEV__=${String(isDev)}`,
|
||||
...formatExtraVars(extraVars),
|
||||
- "process=this.process||{}",
|
||||
+ "process=process||this.process||global.process||{}",
|
||||
`__METRO_GLOBAL_PREFIX__='${globalPrefix}'`
|
||||
];
|
||||
return `var ${vars.join(",")};${processEnv(
|
||||
Reference in New Issue
Block a user