mirror of
https://github.com/status-im/metro.git
synced 2025-03-02 11:40:55 +00:00
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
2
react-packager/src/Bundler/Bundle.js
vendored
2
react-packager/src/Bundler/Bundle.js
vendored
@ -341,7 +341,7 @@ function * filter(iterator, predicate) {
|
|||||||
|
|
||||||
function * subtree(moduleTransport, moduleTransportsByPath, seen = new Set()) {
|
function * subtree(moduleTransport, moduleTransportsByPath, seen = new Set()) {
|
||||||
seen.add(moduleTransport.id);
|
seen.add(moduleTransport.id);
|
||||||
for (const [, {path}] of moduleTransport.meta.dependencyPairs) {
|
for (const [, {path}] of moduleTransport.meta.dependencyPairs || []) {
|
||||||
const dependency = moduleTransportsByPath.get(path);
|
const dependency = moduleTransportsByPath.get(path);
|
||||||
if (dependency && !seen.has(dependency.id)) {
|
if (dependency && !seen.has(dependency.id)) {
|
||||||
yield dependency.id;
|
yield dependency.id;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user