mirror of https://github.com/status-im/metro.git
[react-packager] Wait for haste map before accepting any requests
Summary: D2319999 introduced a regression where we stopped waiting for the "build haste map" step to finish before we accept any requests. This makes sure that we block on that. Need to unbreak with this, but will follow up with a test to catch this in the future.
This commit is contained in:
parent
2efc7eb35d
commit
866df6d37c
|
@ -101,7 +101,7 @@ class DependencyGraph {
|
||||||
this._fastfs.build()
|
this._fastfs.build()
|
||||||
.then(() => {
|
.then(() => {
|
||||||
const hasteActivity = Activity.startEvent('Building Haste Map');
|
const hasteActivity = Activity.startEvent('Building Haste Map');
|
||||||
this._buildHasteMap().then(() => Activity.endEvent(hasteActivity));
|
return this._buildHasteMap().then(() => Activity.endEvent(hasteActivity));
|
||||||
}),
|
}),
|
||||||
this._buildAssetMap_DEPRECATED(),
|
this._buildAssetMap_DEPRECATED(),
|
||||||
]);
|
]);
|
||||||
|
|
Loading…
Reference in New Issue