For AI agents: the complete documentation index is available at https://mfdoctor.kevinbeier.com/llms.txt, the full documentation bundle is available at https://mfdoctor.kevinbeier.com/llms-full.txt, and this page is available as Markdown at https://mfdoctor.kevinbeier.com/rules/config/unique-name-mismatch.md.

config/unique-name-mismatch

  • Category: reliability
  • Default severity: info

Issue

Webpack/Rspack output.uniqueName namespaces the compiler runtime. When it disagrees with Module Federation name on the same compiler, chunk-loading globals and the container id can diverge. This stays info because uniqueName is often set equal on purpose, and a mismatch can be intentional. Multi-plugin compilers are skipped because uniqueName is compiler-scoped.

How to fix it

Set output.uniqueName to the same value as Module Federation name. Omit uniqueName when you do not need an override.

Suppress or retarget with rules["config/unique-name-mismatch"] set to "off" or a severity, see Suppressions and allowlists.

Sources