Summary: Bumps [metro](https://github.com/facebook/metro) from 0.60.0 to 0.63.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/facebook/metro/releases">metro's releases</a>.</em></p> <blockquote> <h2>Release v0.63.0</h2> <ul> <li>[fix] Change initialisation logo and text from RN to Metro</li> </ul> <h2>Release v0.62.0</h2> <ul> <li>[feature] Add onBundleBuilt to ServerOptions</li> </ul> <h2>Release v0.61.0</h2> <p>Contains all changes since 0.60.0:</p> <ul> <li>[Feature]: Add support for blockList and array of regexs</li> <li>[Fix]: Change order of imports to be the same as in source files</li> <li>[Feature]: Add new secureServerOptions option to runServer</li> <li>[Feature]: Add inline-requires option</li> <li>[PetPeeve]: Metro server => Metro</li> </ul> <p>See <a href="https://github.com/facebook/metro/compare/0.60.0...0.61.0">0.59.0...0.60.0</a> for a full list of changes.</p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="b9bacd51d0"><code>b9bacd5</code></a> Metro release v0.63.0</li> <li><a href="c106b6540e"><code>c106b65</code></a> Change initialisation logo and text</li> <li><a href="be719b29c0"><code>be719b2</code></a> remove redundant deprecated-utility setting from flow configs</li> <li><a href="9236feba99"><code>9236feb</code></a> Turn off template literal and shorthand properties transform for hermes-canary</li> <li><a href="6b82e8443c"><code>6b82e84</code></a> Create a <code>metro-runtime</code> module</li> <li><a href="18883f6caa"><code>18883f6</code></a> Fix up package.json files.</li> <li><a href="921b73e4d0"><code>921b73e</code></a> Remove autogenerated table of contents (deprecated in docusaurus v2)</li> <li><a href="eb9b02572b"><code>eb9b025</code></a> Update configuration page with examples</li> <li><a href="00a5a6d8d6"><code>00a5a6d</code></a> Fix troubleshooting and help pages</li> <li><a href="c73eaf88f8"><code>c73eaf8</code></a> Update docusaurus version</li> <li>Additional commits viewable in <a href="https://github.com/facebook/metro/compare/v0.60.0...v0.63.0">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/configuring-github-dependabot-security-updates) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `dependabot rebase` will rebase this PR - `dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `dependabot merge` will merge this PR after your CI passes on it - `dependabot squash and merge` will squash and merge this PR after your CI passes on it - `dependabot cancel merge` will cancel a previously requested merge and block automerging - `dependabot reopen` will reopen this PR if it is closed - `dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Pull Request resolved: https://github.com/facebook/flipper/pull/1606 Reviewed By: passy Differential Revision: D24392103 Pulled By: nikoant fbshipit-source-id: 6d816629f55e04852d6737f9960fa61d7e83cee8
14 lines
665 B
Diff
14 lines
665 B
Diff
diff --git a/node_modules/metro/src/lib/getPreludeCode.js b/node_modules/metro/src/lib/getPreludeCode.js
|
|
index 476319e..c1cd920 100644
|
|
--- a/node_modules/metro/src/lib/getPreludeCode.js
|
|
+++ b/node_modules/metro/src/lib/getPreludeCode.js
|
|
@@ -57,7 +57,7 @@ function getPreludeCode(_ref) {
|
|
"__BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date.now()",
|
|
`__DEV__=${String(isDev)}`
|
|
].concat(_toConsumableArray(formatExtraVars(extraVars)), [
|
|
- "process=this.process||{}",
|
|
+ "process=process||this.process||global.process||{}",
|
|
`__METRO_GLOBAL_PREFIX__='${globalPrefix}'`
|
|
]);
|
|
return `var ${vars.join(",")};${processEnv(
|