diff --git a/packages/bee-q-angular/src/bee-q.module.ts b/packages/bee-q-angular/src/bee-q.module.ts index 6b16c2a9c..076bc0f62 100644 --- a/packages/bee-q-angular/src/bee-q.module.ts +++ b/packages/bee-q-angular/src/bee-q.module.ts @@ -1,5 +1,5 @@ import { CommonModule } from '@angular/common'; -import { APP_INITIALIZER, ModuleWithProviders, NgModule } from '@angular/core'; +import { ModuleWithProviders, NgModule } from '@angular/core'; import { defineCustomElements } from '@bee-q/core/dist/loader'; import { DIRECTIVES } from './directives'; @@ -8,18 +8,10 @@ import { DIRECTIVES } from './directives'; imports: [CommonModule], declarations: [...DIRECTIVES], exports: [...DIRECTIVES], - providers: [ - { - provide: APP_INITIALIZER, - useFactory: () => { - return defineCustomElements(); - }, - multi: true, - }, - ], }) export class BeeQModule { static forRoot(): ModuleWithProviders { + defineCustomElements(); return { ngModule: BeeQModule, }; diff --git a/packages/bee-q/project.json b/packages/bee-q/project.json index 453bf7b41..2b1471616 100644 --- a/packages/bee-q/project.json +++ b/packages/bee-q/project.json @@ -49,7 +49,7 @@ "build": { "dependsOn": ["generate-icons"], "executor": "@nxext/stencil:build", - "outputs": ["{options.outputPath}", "packages/bee-q", "packages/bee-q-angular/src", "packages/bee-q-react/src"], + "outputs": ["{options.outputPath}"], "options": { "projectType": "library", "tsConfig": "packages/bee-q/tsconfig.lib.json",