@uniformdev/transformer 1.1.28 → 1.1.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -628,13 +628,21 @@ var CompositionConverterService = class {
628
628
  }
629
629
  const contentTypeMap = /* @__PURE__ */ new Map();
630
630
  for (const rootType of rootComponentTypes) {
631
- const { component } = await this.componentService.loadComponent(
632
- componentsDirFull,
633
- rootType,
634
- { strict }
635
- );
636
- const contentType = this.generateContentType(component);
637
- contentTypeMap.set(rootType, contentType);
631
+ try {
632
+ const { component } = await this.componentService.loadComponent(
633
+ componentsDirFull,
634
+ rootType,
635
+ { strict }
636
+ );
637
+ const contentType = this.generateContentType(component);
638
+ contentTypeMap.set(rootType, contentType);
639
+ } catch (error) {
640
+ if (error instanceof ComponentNotFoundError) {
641
+ this.logger.warn(`Component not found: ${rootType} \u2014 skipping content type generation`);
642
+ continue;
643
+ }
644
+ throw error;
645
+ }
638
646
  }
639
647
  const allTargetTypes = [.../* @__PURE__ */ new Set([...componentsToReferences, ...componentsToBlocks])];
640
648
  const targetContentTypeMap = /* @__PURE__ */ new Map();