Skip to content

Commit

Permalink
Do not duplicate bundleInfo's subModules
Browse files Browse the repository at this point in the history
  • Loading branch information
d3xter666 committed Nov 6, 2023
1 parent cbb22b4 commit 31a88ae
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/lbt/bundle/ResolvedBundleDefinition.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,11 @@ class ResolvedBundleDefinition {
return Promise.all(
modules.map( (submodule) => {
return pool.getModuleInfo(submodule).then(
(subinfo) => bundleInfo.addSubModule(subinfo)
(subinfo) => {
if (!bundleInfo.subModules.includes(subinfo.name)) {
bundleInfo.addSubModule(subinfo);
}
}
);
})
);
Expand Down

0 comments on commit 31a88ae

Please sign in to comment.