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/copied-vite-options-on-webpack.md.

config/copied-vite-options-on-webpack

  • Category: correctness
  • Default severity: warning

Issue

Vite-only Module Federation options pasted onto Enhanced / webpack-family configs (virtualModuleDir, hostInitInjectLocation, bundleAllCSS, remoteHmr, varFilename) are ignored, so a copied Vite config silently no-ops.

How to fix it

Remove the listed Vite-only keys from webpack, Rspack, Rsbuild, or Modern.js federation options. They are @module-federation/vite controls and have no Enhanced equivalent.

Suppress or retarget with rules["config/copied-vite-options-on-webpack"] set to "off" or a severity, see Suppressions and allowlists.

Sources