Skip to content

Commit

Permalink
fix: added platform-browser to webpack config (#150)
Browse files Browse the repository at this point in the history
  • Loading branch information
HenryT-CG authored Oct 22, 2024
1 parent 7acdd20 commit 6b9bc5b
Showing 1 changed file with 12 additions and 37 deletions.
49 changes: 12 additions & 37 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,28 +9,15 @@ const config = withModuleFederationPlugin({
},
shared: share({
'@angular/core': { requiredVersion: 'auto' },
'@angular/forms': {
requiredVersion: 'auto',
includeSecondaries: true,
eager: false
},
'@angular/common': {
requiredVersion: 'auto',
includeSecondaries: {
skip: ['@angular/common/http/testing']
}
},
'@angular/common/http': {
requiredVersion: 'auto',
includeSecondaries: true
},
'@angular/common': { requiredVersion: 'auto', includeSecondaries: { skip: ['@angular/common/http/testing'] } },
'@angular/common/http': { requiredVersion: 'auto', includeSecondaries: true },
'@angular/elements': { requiredVersion: 'auto', includeSecondaries: true },
'@angular/forms': { requiredVersion: 'auto', includeSecondaries: true, eager: false },
'@angular/platform-browser': { requiredVersion: 'auto', includeSecondaries: true },
'@angular/router': { requiredVersion: 'auto', includeSecondaries: true },
'@angular/elements': {
requiredVersion: 'auto',
includeSecondaries: true
},
rxjs: { requiredVersion: 'auto', includeSecondaries: true },
'@ngx-translate/core': { requiredVersion: 'auto' },
primeng: { requiredVersion: 'auto', includeSecondaries: true },
rxjs: { requiredVersion: 'auto', includeSecondaries: true },
'@onecx/accelerator': { requiredVersion: 'auto', includeSecondaries: true },
'@onecx/angular-accelerator': { requiredVersion: 'auto', includeSecondaries: true },
'@onecx/angular-auth': { requiredVersion: 'auto', includeSecondaries: true },
Expand All @@ -40,30 +27,18 @@ const config = withModuleFederationPlugin({
'@onecx/integration-interface': { requiredVersion: 'auto', includeSecondaries: true },
'@onecx/keycloak-auth': { 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 }
'@onecx/portal-layout-styles': { requiredVersion: 'auto', includeSecondaries: true }
}),
sharedMappings: ['@onecx/portal-integration-angular']
})
config.devServer = {
allowedHosts: 'all'
}
config.devServer = { allowedHosts: 'all' }

const plugins = config.plugins.filter((plugin) => !(plugin instanceof ModifyEntryPlugin))

module.exports = {
...config,
plugins,
output: {
uniqueName: 'onecx-welcome-ui',
publicPath: 'auto'
},
experiments: {
...config.experiments,
topLevelAwait: true
},
optimization: {
runtimeChunk: false,
splitChunks: false
}
output: { uniqueName: 'onecx-welcome-ui', publicPath: 'auto' },
experiments: { ...config.experiments, topLevelAwait: true },
optimization: { runtimeChunk: false, splitChunks: false }
}

0 comments on commit 6b9bc5b

Please sign in to comment.