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

config/copied-webpack-options-on-vite

  • Category: correctness
  • Default severity: warning

Issue

Webpack ModuleFederationPlugin-only options pasted onto @module-federation/vite are ignored or misinterpreted, which leads to silent mis-shares or runtime crashes after a webpack-to-Vite migration.

How to fix it

Remove the listed webpack-only keys. Prefer the Vite equivalent when one exists (remotes.<name>.type for remoteType; top-level disableRemote / disableShared / disableSnapshot / target for experiments.optimization.*). Keys without a Vite equivalent are not applicable and should be deleted.

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

Sources