Skip to content

Commit

Permalink
Merge 674c871 into 0560499
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikola-3 authored Feb 20, 2024
2 parents 0560499 + 674c871 commit d2b05a7
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions packages/bundlers/default/src/DefaultBundler.js
Original file line number Diff line number Diff line change
Expand Up @@ -459,10 +459,12 @@ function createIdealGraph(

// Process in reverse order so earlier configs take precedence
for (let c of config.manualSharedBundles.reverse()) {
invariant(
c.root == null || configToParentAsset.has(c),
'Invalid manual shared bundle. Could not find parent asset.',
);
if (c.root != null && !configToParentAsset.has(c)) {
logger.warn(
`Manual shared bundle "${c.name}" skipped, no root asset found`,
);
continue;
}

let parentAsset = configToParentAsset.get(c);
let assetRegexes = c.assets.map(glob => globToRegex(glob));
Expand Down

0 comments on commit d2b05a7

Please sign in to comment.