Skip to content

Multiple Import Maps #381

Closed
Closed

Description

@yoavweiss

WebKittens

@annevk

Title of the spec

Dynamic import maps

URL to the spec

whatwg/html#10528

URL to the spec's repository

https://github.com/whatwg/html

Issue Tracker URL

No response

Explainer URL

whatwg/html#10528 (comment)

TAG Design Review URL

w3ctag/design-reviews#980

Mozilla standards-positions issue URL

mozilla/standards-positions#1058

WebKit Bugzilla URL

https://bugs.webkit.org/show_bug.cgi?id=279025

Radar URL

rdar://135555516

Description

Import maps currently have to load before any ES module and there can only be a single import map per document. That makes them fragile and potentially slow to use in real-life scenarios: Any module that loads before them breaks the entire app, and in apps with many modules the become a large blocking resource, as the entire map for all possible modules needs to load first.

This proposal is to enable multiple import maps per document, by merging them in a consistent and deterministic way.

Activity

  1. marcoscaceres commented on Aug 21, 2024

    @marcoscaceres
  2. added
    topic: html
    topic: javascript
    from: other
    on Oct 7, 2024
  3. changed the title [-]Dynamic Import Maps[/-] [+]Multiple Import Maps[/+] on Oct 8, 2024
  4. yoavweiss commented on Oct 24, 2024

    @yoavweiss
    Author
  5. annevk commented on Nov 4, 2024

    @annevk
    Contributor

    Colleagues and I consider this a reasonable improvement to Import Maps. As such I suggest we mark it "position: supports" one week from now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    from: otherposition: supporttopic: htmltopic: javascriptvenue: WHATWG HTML Workstream

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions