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 9afd535
Browse filesBrowse the repository at this point in the historyBrowse files
fix(cache): invalidate consumer codegen when inlined exports change (#22020)
* fix(cache): invalidate consumer codegen when inlined exports change
Include inactive-but-inlined import connections in the module graph
hash so filesystem cache does not keep stale literals (#22019).
* Add test case
* update
* fix(cache): encode provided-exports value dependencies unambiguously
The provided-exports cache key joined "key=value" pairs with "|", so a
DefinePlugin version spelling out those separators could forge another
key's entry and reuse a prior configuration's inlined literals. Serialize
the still-lazy requests and the value versions as JSON instead.
Adds two PersistentCaching cases: a DefinePlugin-provided inlined export
changing between cached builds, and two version sets that collided under
the old encoding.
* refactor(cache): fold the value-version shapes into one branch
`instanceof Set` separates the two shapes a value dependency can take;
an absent version needs no arm of its own, since JSON.stringify already
writes it as null inside the array, distinct from a string and an array.
---------
Co-authored-by: xiaoxiaojx <[email protected]>
Co-authored-by: Hai <[email protected]>
0 commit comments