diff --git a/libs/ui/src/index.ts b/libs/ui/src/index.ts index 7568b55..c672a0d 100644 --- a/libs/ui/src/index.ts +++ b/libs/ui/src/index.ts @@ -5,13 +5,7 @@ // The Utrecht v3 components are NgModule-based (not standalone), so we re-export the module. // A standalone component consumes them by importing UtrechtComponentsModule in its `imports` // (CLAUDE.md §10 forbids *declaring* NgModules in our code, not consuming a third-party one). -// The component classes are re-exported too so the AOT compiler can resolve the template -// directives (utrecht-article, utrecht-button, …) through this barrel. -export { - UtrechtArticle, - UtrechtButtonAttr, - UtrechtComponentsModule, - UtrechtDocument, - UtrechtHeading1, - UtrechtParagraph, -} from '@utrecht/component-library-angular'; +// Re-export the whole Utrecht package: importing UtrechtComponentsModule pulls every component it +// exports into the compiler's scope, so the AOT build needs all of them resolvable through this +// barrel (a partial re-export fails with NG3004 for the first unused component). +export * from '@utrecht/component-library-angular';