We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1dabac0 commit 5ab18ddCopy full SHA for 5ab18dd
1 file changed
webpack/webpack.common.js
@@ -423,6 +423,9 @@ if (isMfeEnabled) {
423
new ModuleFederationPlugin({
424
name: mfeName,
425
filename: 'remoteEntry.js',
426
+ // Use a string-keyed global to avoid minifier mangling the container name
427
+ // (e.g. `var projectA` -> `var A`), which breaks host loading.
428
+ library: { type: 'window', name: mfeName },
429
exposes: resolveExpose(),
430
remotes,
431
shared: {
0 commit comments