-
fix(core): resolve lockfile cache regression with keyMap state (#33448)
发布于
2025-11-11 16:52:05 +00:00 After PR #33256 split lockfile parsing into separate node and dependency
caches, a regression occurred where dependencies could be regenerated
without nodes, leaving a shared module-level variable (keyMap) empty
and causing incorrect dependency resolution.Changes:
- Serialize
keyMapwith nodes cache to maintain state between phases - Remove module-level shared state from pnpm, npm, and yarn parsers
- Move
keyMapcreation insidegetNodesfunctions for better
encapsulation - Update
readCachedExternalNodesto deserializekeyMapinternally
下载附件
- Serialize