From 866df6d37c7199932e17a8213e680c751ce4e088 Mon Sep 17 00:00:00 2001 From: Amjad Masad Date: Wed, 19 Aug 2015 15:15:48 -0700 Subject: [PATCH] [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. --- react-packager/src/DependencyResolver/DependencyGraph/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/react-packager/src/DependencyResolver/DependencyGraph/index.js b/react-packager/src/DependencyResolver/DependencyGraph/index.js index 4cdf0c2e..050ab214 100644 --- a/react-packager/src/DependencyResolver/DependencyGraph/index.js +++ b/react-packager/src/DependencyResolver/DependencyGraph/index.js @@ -101,7 +101,7 @@ class DependencyGraph { this._fastfs.build() .then(() => { const hasteActivity = Activity.startEvent('Building Haste Map'); - this._buildHasteMap().then(() => Activity.endEvent(hasteActivity)); + return this._buildHasteMap().then(() => Activity.endEvent(hasteActivity)); }), this._buildAssetMap_DEPRECATED(), ]);