Skip to content

Serialize import map URLs explicitly - #73

Merged
samuel-williams-shopify merged 1 commit into
mainfrom
explicit-import-map-urls
Aug 15, 2026
Merged

Serialize import map URLs explicitly#73
samuel-williams-shopify merged 1 commit into
mainfrom
explicit-import-map-urls

Conversation

@samuel-williams-shopify

Copy link
Copy Markdown
Contributor

Summary

  • require protocol-url ~> 0.18
  • use URL#relative_to directly when rebasing import maps
  • serialize import-map addresses with to_s(explicit: true)
  • preserve absolute bases and identify ambiguous relative addresses with ./

This keeps URL calculation RFC-minimal while making addresses self-identifying in the import-map grammar.

Testing

  • BUNDLE_WITHOUT=maintenance bundle exec sus test/utopia/import_map.rb (45 tests, 67 assertions)
  • BUNDLE_WITHOUT=maintenance bundle exec rubocop

@samuel-williams-shopify
samuel-williams-shopify merged commit 8f4f1c3 into main Aug 15, 2026
34 of 40 checks passed
@samuel-williams-shopify
samuel-williams-shopify deleted the explicit-import-map-urls branch August 15, 2026 01:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant