Skip to content

Commit

Permalink
fixup! Add bundle.mainEntryAsset
Browse files Browse the repository at this point in the history
  • Loading branch information
Will Binns-Smith committed May 10, 2022
1 parent 195d041 commit bc6aedd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/bundlers/experimental/src/ExperimentalBundler.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ function decorateLegacyGraph(
let bundle;

if (bundleGroupBundleIds.includes(bundleNodeId)) {
invariant(entryAsset != null);
let dependencies = dependencyBundleGraph
.getNodeIdsConnectedTo(
dependencyBundleGraph.getNodeIdByContentKey(String(bundleNodeId)),
Expand Down Expand Up @@ -179,6 +180,7 @@ function decorateLegacyGraph(
}),
);
} else {
invariant(entryAsset != null);
bundle = nullthrows(
bundleGraph.createBundle({
entryAsset,
Expand Down

0 comments on commit bc6aedd

Please sign in to comment.