fix(react): fixes library type not passed to the module federation conf (#15385)

This commit is contained in:
Ruben Casas 2023-03-02 12:49:01 -05:00 committed by GitHub
parent 66f498ac8a
commit c05425104e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -51,9 +51,7 @@ export async function withModuleFederation(
config.plugins.push(
new ModuleFederationPlugin({
name: options.name,
library: {
type: 'module',
},
library: options.library ?? { type: 'module' },
filename: 'remoteEntry.js',
exposes: options.exposes,
remotes: mappedRemotes,