Skip to content

ES Module support for Web Workers #192

Closed

Description

@potch

Description

With robust, native ES module support in both the server and the main thread of modern browsers, it would be wonderful to have full support for ES Modules in Web Worker contexts without need for compilation.

Rationale

Specification

https://html.spec.whatwg.org/multipage/workers.html#module-worker-example

Tests

https://wpt.fyi/results/workers/modules

Activity

  1. added
    focus-area-proposal
    on Oct 7, 2022
  2. moved this to Proposed in Interop 2023on Oct 7, 2022
  3. added this to the milestone on Oct 7, 2022
  4. removed this from the milestone on Oct 7, 2022
  5. bkardell commented on Oct 12, 2022

    @bkardell
    Contributor

    The current status quo is very complicated to deal with and I think a lot of people just don't even bother because of it. This is a thing we kind of need interop on to really realize the potential of and I think that a lot of stuff that uses workers is stuff that people use kind of a lot or have strict perf goals/limits... There are less of them and they are more centralized, so another bit of rationale here is that it is a win for more users requiring less people (who are already acutely aware) to act.

  6. tbondwilkinson commented on Oct 24, 2022

    @tbondwilkinson

    ES module support for Web Worker is a P3 for Google's closure library

    "I don't have a good sense of how widespread the use of workers is, nor the effect it has on the code, but my understanding is that you have to write code differently depending on where it's targetted, and this is a burden on users."

  7. added
    accepted
    on Feb 1, 2023
  8. foolip commented on Feb 1, 2023

    @foolip
    Member

    Thank you for proposing ES Module support for Web Workers 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