mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-24 04:16:00 +08:00
Unbreak RAM groups for modules without dependency pairs
Reviewed By: javache Differential Revision: D3886546 fbshipit-source-id: 9b18834f91393de8a4b7c2e963a63a8f37c1c7b1
This commit is contained in:
committed by
Facebook Github Bot
parent
644b93dc11
commit
dd20aa5ef0
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user