diff --git a/packager/src/ModuleGraph/node-haste/node-haste.js b/packager/src/ModuleGraph/node-haste/node-haste.js index 7f9b700581..c3a136727f 100644 --- a/packager/src/ModuleGraph/node-haste/node-haste.js +++ b/packager/src/ModuleGraph/node-haste/node-haste.js @@ -112,7 +112,6 @@ exports.createResolveFn = function(options: ResolveOptions): ResolveFn { entryPath: '', extraNodeModules, hasteFS, - hasteMap, helpers, matchFiles: filesByDirNameIndex.match.bind(filesByDirNameIndex), moduleCache, diff --git a/packager/src/node-haste/DependencyGraph/ResolutionRequest.js b/packager/src/node-haste/DependencyGraph/ResolutionRequest.js index 4d1b810bb2..eca28e640a 100644 --- a/packager/src/node-haste/DependencyGraph/ResolutionRequest.js +++ b/packager/src/node-haste/DependencyGraph/ResolutionRequest.js @@ -59,19 +59,19 @@ type ModuleishCache = { type MatchFilesByDirAndPattern = (dirName: string, pattern: RegExp) => Array; -type Options = { - dirExists: DirExistsFn, - entryPath: string, - extraNodeModules: ?Object, - hasteFS: HasteFS, - helpers: DependencyGraphHelpers, - matchFiles: MatchFilesByDirAndPattern, - moduleCache: ModuleishCache, - moduleMap: ModuleMap, - platform: string, - platforms: Set, - preferNativePlatform: boolean, -}; +type Options = {| + +dirExists: DirExistsFn, + +entryPath: string, + +extraNodeModules: ?Object, + +hasteFS: HasteFS, + +helpers: DependencyGraphHelpers, + +matchFiles: MatchFilesByDirAndPattern, + +moduleCache: ModuleishCache, + +moduleMap: ModuleMap, + +platform: string, + +platforms: Set, + +preferNativePlatform: boolean, +|}; /** * It may not be a great pattern to leverage exception just for "trying" things