发布

  • fix(core): split lockfile cache and other performance improvements (#33256)

    frostbyte_neo 发布于 2025-10-27 14:33:18 +00:00

    Summary

    This PR includes three performance and correctness improvements:

    1. 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.json for external nodes
      • parsed-lock-file.dependencies.json for dependencies
    2. Prevent duplicate plugin resolution calls with promise cache -
      Added a promise cache to prevent concurrent duplicate calls to
      retrieveProjectConfigurationsWithoutPluginInference when multiple
      plugins fail to resolve simultaneously

    3. 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

    下载附件