You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 062bdf7
Browse filesBrowse the repository at this point in the historyBrowse files
fix(serialization): keep pre-move requests restorable from old caches
Moving a serializable changes its request string, so a filesystem cache
written before the move names a key nothing registers and the entry is
rebuilt instead of restored. The existing generator aliases only load the
module; the inversed lookup still misses, so restoring throws.
ObjectMiddleware.registerLegacyRequest adds the historical request as an
extra deserialization key for an already registered constructor. Writes
keep using the current request, so only old caches reach the old key, and
the generator derives the loader entry from the call.
ContextModule, ExternalModule and ModuleExternalInitFragment register the
requests they had before moving, each marked for removal in webpack 6.
0 commit comments