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/shared/eager-without-singleton.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.

shared/eager-without-singleton

  • Kategorie: performance
  • Standardschweregrad: warning

Problem

An eager non-singleton can add copies to initial chunks without guaranteeing reuse.

So beheben Sie das Problem

Set singleton: true on that shared package when it holds framework state, or drop eager: true so the runtime can load a single copy.

Suppress or retarget with rules["shared/eager-without-singleton"] set to "off" or a severity, see Suppressions and allowlists.

Quellen