diff --git a/src/bin/helpers/getOptionsFromWebpackConfig.ts b/src/bin/helpers/getOptionsFromWebpackConfig.ts index d60ed04..cbe0ee6 100644 --- a/src/bin/helpers/getOptionsFromWebpackConfig.ts +++ b/src/bin/helpers/getOptionsFromWebpackConfig.ts @@ -25,7 +25,7 @@ export function getOptionsFromWebpackConfig(webpackConfigPath: string) { function getModuleFederationPluginOptions(config: Compiler['options']) { const plugin = config.plugins.find( - nextPlugin => nextPlugin!.constructor.name === 'ModuleFederationPlugin', + nextPlugin => /^_?ModuleFederationPlugin$/.test(nextPlugin!.constructor.name), ); return (plugin as Dict)?._options as Dict & { remotes?: Dict }; }