Unbreak RAM groups for modules without dependency pairs

Reviewed By: javache

Differential Revision: D3886546

fbshipit-source-id: 9b18834f91393de8a4b7c2e963a63a8f37c1c7b1
This commit is contained in:
David Aurelio 2016-09-19 09:55:36 -07:00 committed by Facebook Github Bot
parent 64245abfc9
commit 2311a28cb2
1 changed files with 1 additions and 1 deletions

View File

@ -341,7 +341,7 @@ function * filter(iterator, predicate) {
function * subtree(moduleTransport, moduleTransportsByPath, seen = new Set()) {
seen.add(moduleTransport.id);
for (const [, {path}] of moduleTransport.meta.dependencyPairs) {
for (const [, {path}] of moduleTransport.meta.dependencyPairs || []) {
const dependency = moduleTransportsByPath.get(path);
if (dependency && !seen.has(dependency.id)) {
yield dependency.id;