import_map icon indicating copy to clipboard operation
import_map copied to clipboard

Import map merging

Open CertainLach opened this issue 5 months ago • 2 comments

My implementation of multiple import maps in deno (https://github.com/denoland/deno/pull/30754) iterates over import maps to find matches. It is, however, unable to detect if ImportMap::resolve has returned an entry, that should be tried from next import map.

This change allows to only return remapped paths.

This PR also implements import map merging as described by spec: https://html.spec.whatwg.org/multipage/webappapis.html#merge-existing-and-new-import-maps I can split those changes if that would be better for review purposes

Ref: https://github.com/denoland/deno/pull/30754#issuecomment-3305359983

CertainLach avatar Sep 18 '25 04:09 CertainLach