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/plugin-package-mismatch.md.

config/plugin-package-mismatch

  • Category: correctness
  • Default severity: warning

Issue

Using the wrong integration can skip required bundler hooks and runtime generation. On Rspack, leftover @module-federation/rspack (alone or mixed with @module-federation/enhanced) misses Enhanced options such as asyncStartup.

How to fix it

Use the official package for Vite, Rspack, Rsbuild, Webpack, or Modern.js. For Rspack, depend on @module-federation/enhanced (or @module-federation/enhanced/rspack) and remove leftover @module-federation/rspack.

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

Sources