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/split-chunks-mf-runtime.md.

config/split-chunks-mf-runtime

  • Category: reliability
  • Default severity: warning

Issue

User cacheGroups that target mf-* / remoteEntry / shared-runtime chunks can steal Module Federation runtime and shared ownership, breaking init order or duplicate-share isolation. This is an advisory for observed public splitChunks only; mfdoctor does not nag every project to set chunks: "async".

How to fix it

Exclude federation runtime chunks from cacheGroups (name, test, and filename). Leave MF-owned remoteEntry and shared-runtime chunks to the federation plugin, or allowlist a proven layout with allowSplitChunks: true.

Suppress or retarget with rules["config/split-chunks-mf-runtime"] set to "off" or a severity, see Suppressions and allowlists.

Sources