🤖 test(Code components): #3591748 Add failing test for diamond-dependency import-map scope

Adds tests and a fix for a bug in resolving dependencies that are both local and transitive (dependency of a separate local dependency).

AI-Generated: Yes - Used Claude Code to track down the bug, write the test & fix, the issue description, and the commits.

Manually reviewed all code, as well as manually tested the before/after state in Drupal CMS with the example code components from the issue

Testing instructions

  • Add the code components from the issue
  • Add the pricing to a page
  • Without this fix, the component does not render and the dependency error is in the console. With the fix, it renders with no errors.

Closes #3591748

Merge request reports

Loading