We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 63b8a84 commit a29a143Copy full SHA for a29a143
1 file changed
src/bin/helpers/getOptionsFromWebpackConfig.ts
@@ -25,7 +25,7 @@ export function getOptionsFromWebpackConfig(webpackConfigPath: string) {
25
26
function getModuleFederationPluginOptions(config: Compiler['options']) {
27
const plugin = config.plugins.find(
28
- nextPlugin => nextPlugin!.constructor.name === 'ModuleFederationPlugin',
+ nextPlugin => /^_?ModuleFederationPlugin$/.test(nextPlugin!.constructor.name),
29
);
30
return (plugin as Dict)?._options as Dict & { remotes?: Dict<string> };
31
}
0 commit comments