diff --git a/lib/lbt/bundle/ResolvedBundleDefinition.js b/lib/lbt/bundle/ResolvedBundleDefinition.js index 013b433a7..e8cf0353a 100644 --- a/lib/lbt/bundle/ResolvedBundleDefinition.js +++ b/lib/lbt/bundle/ResolvedBundleDefinition.js @@ -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); + } + } ); }) );