fix(react): fixes library type not passed to the module federation conf (#15385)
This commit is contained in:
parent
66f498ac8a
commit
c05425104e
@ -51,9 +51,7 @@ export async function withModuleFederation(
|
|||||||
config.plugins.push(
|
config.plugins.push(
|
||||||
new ModuleFederationPlugin({
|
new ModuleFederationPlugin({
|
||||||
name: options.name,
|
name: options.name,
|
||||||
library: {
|
library: options.library ?? { type: 'module' },
|
||||||
type: 'module',
|
|
||||||
},
|
|
||||||
filename: 'remoteEntry.js',
|
filename: 'remoteEntry.js',
|
||||||
exposes: options.exposes,
|
exposes: options.exposes,
|
||||||
remotes: mappedRemotes,
|
remotes: mappedRemotes,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user