Skip to content

Commit

Permalink
feat: shared packa-lock packages and removed singletons (#176)
Browse files Browse the repository at this point in the history
  • Loading branch information
markuczy authored Jul 18, 2024
1 parent 148e664 commit 987747b
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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']
})
Expand Down

0 comments on commit 987747b

Please sign in to comment.