Skip to content

Import Maps #184

Closed
Closed

Description

@LeviPesin

Description

Import maps are really useful and really needed for very many developers. They are supported everywhere except Safari and Firefox.

Rationale

They are extremely useful for JavaScript libraries and their developers, for example three.js.

Specification

https://wicg.github.io/import-maps/

Tests

https://wpt.fyi/results/?label=master&label=experimental&aligned&view=subtest&q=import-maps

Activity

  1. added this to the milestone on Oct 5, 2022
  2. foolip commented on Oct 6, 2022

    @foolip
    Member

    It looks like the spec here isn't on the W3C Recommendation Track. @domenic, as the editor of the spec, what's the likely destination of this once it leaves incubation, and when might that happen?

  3. domenic commented on Oct 6, 2022

    @domenic
    Member
  4. foolip commented on Oct 6, 2022

    @foolip
    Member

    Excellent, thanks @domenic!

  5. moved this to Proposed in Interop 2023on Oct 7, 2022
  6. annevk commented on Oct 7, 2022

    @annevk
    Member

    One potential problem here is that WebKit supports a superset: whatwg/html#8355. It would be undesirable if supporting external import maps would give you a lower score.

    (Also note that with 3 engines "everywhere except 2" leaves 1. 😊)

  7. removed this from the milestone on Oct 7, 2022
  8. foolip commented on Oct 17, 2022

    @foolip
    Member

    This was mentioned by WordPress developer @youknowriad in https://make.wordpress.org/core/2022/10/10/seeking-proposals-for-interop-2023/#comment-43928:

    import maps: Would love support without polyfills as this would allows us to improve the way scripts are registered/handled in WP and introduce lazy loaded scripts…

    Thanks Riad for sharing!

  9. gsnedders commented on Oct 17, 2022

    @gsnedders
    Member

    We probably want to exclude /import-maps/acquiring/modulepreload.html and /import-maps/acquiring/modulepreload-link-header.html.

  10. tbondwilkinson commented on Oct 24, 2022

    @tbondwilkinson

    Import maps are a P4 for Google's closure library

    "It's possible this could help with polyfills, maybe?"

  11. LeviPesin commented on Oct 24, 2022

    @LeviPesin
    Author
  12. gsnedders commented on Oct 24, 2022

    @gsnedders
    Member

    Note /import-maps/data-driven/ are currently failing in WebKit for unrelated reasons (related to when load events are fired on iframe elements).

    I don't know how difficult this would be to workaround (it might be as simple as passing {once: true} to event listener), but we probably ought not test totally unrelated behaviour here.

  13. foolip commented on Nov 11, 2022

    @foolip
    Member

    In the MDN short survey on APIs & JavaScript, "Import Maps" was selected by ~13% of survey takers, putting it in the bottom third of options. (There is some uncertainty as with any survey data.)

  14. added
    accepted
    on Feb 1, 2023
  15. foolip commented on Feb 1, 2023

    @foolip
    Member

    Thank you for proposing Import Maps for inclusion in Interop 2023.

    We are pleased to let you know that this proposal was accepted as part of the Modules focus area. You can follow the progress of this Focus Area on the Interop 2023 dashboard.

    For an overview of our process, see the proposal selection summary. Thank you for contributing to Interop 2023!

    Posted on behalf of the Interop team.

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

    acceptedfocus-area-proposal

    Type

    No type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions