@@ -4,8 +4,7 @@ export function createConfig(
44 projectName : string ,
55 remotes : string ,
66 tsConfigName : string ,
7- root : string ,
8- port : number
7+ root : string
98) : string {
109 return `const ModuleFederationPlugin = require("webpack/lib/container/ModuleFederationPlugin");
1110const mf = require("@angular-architects/module-federation/webpack");
@@ -24,7 +23,7 @@ module.exports = {
2423 },
2524 optimization: {
2625 runtimeChunk: false
27- },
26+ },
2827 resolve: {
2928 alias: {
3029 ...sharedMappings.getAliases(),
@@ -42,22 +41,22 @@ module.exports = {
4241 // filename: "remoteEntry.js",
4342 // exposes: {
4443 // './Component': './${ root } /src/app/app.component.ts',
45- // },
46-
44+ // },
45+
4746 // For hosts (please adjust)
4847 // remotes: {
4948${ remotes }
5049 // },
5150
5251 shared: share({
53- "@angular/core": { singleton: true, strictVersion: true, requiredVersion: 'auto' },
54- "@angular/common": { singleton: true, strictVersion: true, requiredVersion: 'auto' },
55- "@angular/common/http": { singleton: true, strictVersion: true, requiredVersion: 'auto' },
52+ "@angular/core": { singleton: true, strictVersion: true, requiredVersion: 'auto' },
53+ "@angular/common": { singleton: true, strictVersion: true, requiredVersion: 'auto' },
54+ "@angular/common/http": { singleton: true, strictVersion: true, requiredVersion: 'auto' },
5655 "@angular/router": { singleton: true, strictVersion: true, requiredVersion: 'auto' },
5756
5857 ...sharedMappings.getDescriptors()
5958 })
60-
59+
6160 }),
6261 sharedMappings.getPlugin()
6362 ],
0 commit comments