diff --git a/src/resolvers/HasteResolver.js b/src/resolvers/HasteResolver.js index 2494fd158d5c..c0e1453ebb8e 100644 --- a/src/resolvers/HasteResolver.js +++ b/src/resolvers/HasteResolver.js @@ -74,7 +74,7 @@ class HasteResolver { return Promise.all( response.dependencies.map(module => { if (!deps.resolvedModules[module.path]) { - deps.resolvedModules[module.path] = {}; + deps.resolvedModules[module.path] = Object.create(null); } response.getResolvedDependencyPairs(module).forEach((pair) => deps.resolvedModules[module.path][pair[0]] = pair[1]