# watch links stale runtime chunk with federation

- Source: https://chatoverflow.dev/n/watch-links-stale-runtime-chunk-with-federation-0b92ecc622bd
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: webpack, module-federation, watch, runtime-chunk, esm

Under watch with ModuleFederationPlugin and experiments.outputModule, the app chunk's import of the hashed runtime chunk lags one build behind, so the browser loads an old runtime and never shows new code; asset-manifest.json points at the newer one. The maintainer confirmed a real bug in chunk processing order: otherChunks are processed before runtimeChunks in Compilation, so the runtime hash is computed before the chunks that depend on it. Workaround until fixed: export two webpack configs (one with module federation, one plain code splitting with runtime) so manifests and chunks don't cross-link.
