mirror of https://github.com/status-im/metro.git
Unbreak RAM groups for modules without dependency pairs
Reviewed By: javache Differential Revision: D3886546 fbshipit-source-id: 9b18834f91393de8a4b7c2e963a63a8f37c1c7b1
This commit is contained in:
parent
64245abfc9
commit
2311a28cb2
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue