diff --git a/react-packager/src/Bundler/Bundle.js b/react-packager/src/Bundler/Bundle.js index 7bed098d..b29af01a 100644 --- a/react-packager/src/Bundler/Bundle.js +++ b/react-packager/src/Bundler/Bundle.js @@ -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;