diff --git a/react-packager/src/node-haste/DependencyGraph/HasteMap.js b/react-packager/src/node-haste/DependencyGraph/HasteMap.js index 7efbeb42..172e0493 100644 --- a/react-packager/src/node-haste/DependencyGraph/HasteMap.js +++ b/react-packager/src/node-haste/DependencyGraph/HasteMap.js @@ -12,6 +12,7 @@ const EventEmitter = require('events'); const path = require('../fastpath'); const getPlatformExtension = require('../lib/getPlatformExtension'); +const throat = require('throat'); const GENERIC_PLATFORM = 'generic'; const NATIVE_PLATFORM = 'native'; @@ -33,6 +34,9 @@ class HasteMap extends EventEmitter { this._preferNativePlatform = preferNativePlatform; this._helpers = helpers; this._platforms = platforms; + + this._processHastePackage = throat(1, this._processHastePackage.bind(this)); + this._processHasteModule = throat(1, this._processHasteModule.bind(this)); } build() {