mirror of https://github.com/status-im/metro.git
Cleanup InitializeJavascriptAppEngine
Reviewed By: davidaurelio Differential Revision: D3235141 fb-gh-sync-id: 86fc844c5e9d9ea57d504696bac30671c2079e7a fbshipit-source-id: 86fc844c5e9d9ea57d504696bac30671c2079e7a
This commit is contained in:
parent
4608593dce
commit
f9da45197f
|
@ -248,16 +248,6 @@ class Bundler {
|
||||||
entryModuleOnly,
|
entryModuleOnly,
|
||||||
resolutionResponse,
|
resolutionResponse,
|
||||||
}) {
|
}) {
|
||||||
if (dev && runBeforeMainModule) { // no runBeforeMainModule for hmr bundles
|
|
||||||
// `require` calls in the require polyfill itself are not extracted and
|
|
||||||
// replaced with numeric module IDs, but the require polyfill
|
|
||||||
// needs Systrace.
|
|
||||||
// Therefore, we include the Systrace module before the main module, and
|
|
||||||
// it will set itself as property on the require function.
|
|
||||||
// TODO(davidaurelio) Scan polyfills for dependencies, too (t9759686)
|
|
||||||
runBeforeMainModule = runBeforeMainModule.concat(['Systrace']);
|
|
||||||
}
|
|
||||||
|
|
||||||
const onResolutionResponse = response => {
|
const onResolutionResponse = response => {
|
||||||
bundle.setMainModuleId(this._getModuleId(getMainModule(response)));
|
bundle.setMainModuleId(this._getModuleId(getMainModule(response)));
|
||||||
if (bundle.setNumPrependedModules) {
|
if (bundle.setNumPrependedModules) {
|
||||||
|
|
Loading…
Reference in New Issue