-
fix(core): split lockfile cache and other performance improvements (#33256)
发布于
2025-10-27 14:33:18 +00:00 Summary
This PR includes three performance and correctness improvements:
-
Split lockfile cache into separate node and dependency caches -
Previously, both createNodes and createDependencies would read/write the
entire cache. Now each manages its own cache independently:parsed-lock-file.nodes.jsonfor external nodesparsed-lock-file.dependencies.jsonfor dependencies
-
Prevent duplicate plugin resolution calls with promise cache -
Added a promise cache to prevent concurrent duplicate calls to
retrieveProjectConfigurationsWithoutPluginInferencewhen multiple
plugins fail to resolve simultaneously -
Normalize targets in separate loop after validation - Moved
target normalization out of the validation loop to ensure proper
sequencing
Test plan
- Tests pass (currently failing in CI - needs investigation)
- Build succeeds
- Lint passes
🤖 Generated with Claude Code
Co-authored-by: Claude noreply@anthropic.com
下载附件
-