You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 26, 2025. It is now read-only.
It seems like injecting import maps into the page after the first load is explicitly prohibited here:
Similarly, attempting to add a new <script type="importmap"> after any module graph fetching, or fetching of import: URLs, has started, is an error. The import map will be ignored, and the <script> element will fire an error.
This seems very restrictive to me. If the composition rule of import maps was to have them throw on conflicts, then the nondeterministic effects can be reduced here (at least for bare package imports).
This is something users will definitely request as soon as they start using this API. Sandboxes entirely rely on being able to do this sort of thing.
dcleao, markcellus, isidrok, Hypercubed, TechTeam12 and 53 morethescientist13