Skip to content

Commit

Permalink
Remove reachableBundles
Browse files Browse the repository at this point in the history
  • Loading branch information
thebriando authored and Will Binns-Smith committed Mar 10, 2022
1 parent 37e5c6a commit ae3ee14
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions packages/bundlers/experimental/src/ExperimentalBundler.js
Expand Up @@ -265,11 +265,6 @@ function createIdealGraph(
Array<[Dependency, Bundle]>,
> = new DefaultMap(() => []);

// Connects bundleRoot assets to the assets that must be in the bundle
let reachableBundles: DefaultMap<BundleRoot, Set<Asset>> = new DefaultMap(
() => new Set(),
);

let bundleGraph: Graph<Bundle | 'root'> = new Graph();
let stack: Array<[BundleRoot, NodeId]> = [];

Expand Down Expand Up @@ -403,20 +398,6 @@ function createIdealGraph(
),
dependencyPriorityEdges[dependency.priority],
);

// Walk up the stack until we hit a different asset type
// and mark each bundle as reachable from every parent bundle
for (let i = stack.length - 1; i >= 0; i--) {
let [stackAsset] = stack[i];
if (
stackAsset.type !== childAsset.type ||
stackAsset.env.context !== childAsset.env.context ||
stackAsset.env.isIsolated()
) {
break;
}
reachableBundles.get(stackAsset).add(childAsset);
}
continue;
}
if (
Expand Down

0 comments on commit ae3ee14

Please sign in to comment.