Upgrade Metro
Reviewed By: passy Differential Revision: D34789498 fbshipit-source-id: 9e984b308ac6d0dbc917ddaa20812f76d2a69d77
This commit is contained in:
committed by
Facebook GitHub Bot
parent
995d1c8180
commit
6ec3771824
13
desktop/patches/metro+0.69.0.patch
Normal file
13
desktop/patches/metro+0.69.0.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 56780d7..7da26d1 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