diff --git a/src/compiler/collections/load-collections.ts b/src/compiler/collections/load-collections.ts index 6e7ee1a52d7..2b91d01114b 100644 --- a/src/compiler/collections/load-collections.ts +++ b/src/compiler/collections/load-collections.ts @@ -83,7 +83,9 @@ async function loadConfigCollection(config: Config, compilerCtx: CompilerCtx, bu // upgrade the components to be compatible with this version if need be await upgradeCollection(config, compilerCtx, buildCtx, collectionManifest); - await copySourceCollectionComponentsToDistribution(config, compilerCtx, collectionManifest.moduleFiles); + if (config.generateDistribution) { + await copySourceCollectionComponentsToDistribution(config, compilerCtx, collectionManifest.moduleFiles); + } // cache it for later yo compilerCtx.collections[configCollection.name] = collectionManifest;