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

Dies ist die deutsche mfdoctor-Dokumentation. Technische Bezeichner, CLI-Flags, Regel-IDs und Codebeispiele bleiben unverändert, damit die Inhalte zwischen den Sprachen vollständig kompatibel bleiben. Verwenden Sie den Sprachumschalter für die kanonische englische Fassung.

config/hashed-remote-filename

  • Kategorie: reliability
  • Standardschweregrad: warning

Problem

Hashed remote entry filenames invalidate consumer URLs whenever the producer rebuilds. Webpack/Rspack [contenthash] in Module Federation filename, or in output.filename when the container filename is unset, has the same effect as Vite [hash].

So beheben Sie das Problem

Use a stable Module Federation filename such as remoteEntry.js. Keep hashing on chunk filenames instead of the container entry.

Suppress or retarget with rules["config/hashed-remote-filename"] set to "off" or a severity, see Suppressions and allowlists.

Quellen