From 987747bea8d0d6ba2fe185bb37f303bba4fca971 Mon Sep 17 00:00:00 2001 From: markuczy <129275100+markuczy@users.noreply.github.com> Date: Thu, 18 Jul 2024 13:30:17 +0200 Subject: [PATCH] feat: shared packa-lock packages and removed singletons (#176) --- webpack.config.js | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/webpack.config.js b/webpack.config.js index d6990a9..88ea906 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -8,34 +8,37 @@ const config = withModuleFederationPlugin({ './OneCXThemeModule': 'src/bootstrap.ts' }, shared: share({ - '@angular/core': { singleton: true, requiredVersion: 'auto' }, + '@angular/core': { requiredVersion: 'auto' }, '@angular/forms': { - singleton: true, requiredVersion: 'auto', includeSecondaries: true, eager: false }, '@angular/common': { - singleton: true, requiredVersion: 'auto', includeSecondaries: { skip: ['@angular/common/http/testing'] } }, '@angular/common/http': { - singleton: true, requiredVersion: 'auto', includeSecondaries: true }, - '@angular/router': { singleton: true, requiredVersion: 'auto', includeSecondaries: true }, + '@angular/router': { requiredVersion: 'auto', includeSecondaries: true }, rxjs: { requiredVersion: 'auto', includeSecondaries: true }, - '@ngx-translate/core': { singleton: true, requiredVersion: 'auto' }, + '@ngx-translate/core': { requiredVersion: 'auto' }, '@onecx/accelerator': { requiredVersion: 'auto', includeSecondaries: true }, '@onecx/angular-accelerator': { requiredVersion: 'auto', includeSecondaries: true }, + '@onecx/angular-auth': { requiredVersion: 'auto', includeSecondaries: true }, '@onecx/angular-integration-interface': { requiredVersion: 'auto', includeSecondaries: true }, + '@onecx/angular-remote-components': { requiredVersion: 'auto', includeSecondaries: true }, + '@onecx/angular-testing': { requiredVersion: 'auto', includeSecondaries: true }, + '@onecx/angular-webcomponents': { requiredVersion: 'auto', includeSecondaries: true }, '@onecx/integration-interface': { requiredVersion: 'auto', includeSecondaries: true }, '@onecx/keycloak-auth': { requiredVersion: 'auto', includeSecondaries: true }, - '@onecx/portal-integration-angular': { requiredVersion: 'auto', includeSecondaries: true } + '@onecx/portal-integration-angular': { requiredVersion: 'auto', includeSecondaries: true }, + '@onecx/portal-layout-styles': { requiredVersion: 'auto', includeSecondaries: true }, + primeng: { requiredVersion: 'auto', includeSecondaries: true } }), sharedMappings: ['@onecx/portal-integration-angular'] })