[I am sending this on behalf of Yulia Startsev, who is taking parental
leave now]
Summary:
Module workers enables you to use ECMAScript modules on workers rather than
just classic scripts. This enables the `import` `export` style syntax to be
run in a worker. It also enables dynamic import to run in workers, for both
shared and dedicated workers. You instantiate it like so:
```
const worker = new Worker(“<url>”, {type: “module”});
```
I intend to ship this feature in Firefox 114
Bugs: <https://bugzilla.mozilla.org/show_bug.cgi?id=1746209>
-
https://bugzilla.mozilla.org/show_bug.cgi?id=1247687
-
https://bugzilla.mozilla.org/show_bug.cgi?id=1540913
-
https://bugzilla.mozilla.org/show_bug.cgi?id=1805676
Specification: <https://tc39.es/proposal-array-from-async/>
https://html.spec.whatwg.org/multipage/workers.html#worker-processing-model
Platform Coverage: All
Preference: enabled by default under `dom.workers.modules.enabled` when Bug
1812591 <https://bugzilla.mozilla.org/show_bug.cgi?id=1812591> lands.
Documentation: https://developer.mozilla.org/en-US/docs/Web/API/Worker
Other Browsers: Safari and Chrome have shipped.
Testing: Tested through our tests as well as web platform tests.
--
You received this message because you are subscribed to the Google Groups
"[email protected]" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/a/mozilla.org/d/msgid/dev-platform/CAJ5FAhUTf_9mmYBBpfWHcX2t4pRGnf_wioNP78YbXk%3DPZKo6Dg%40mail.gmail.com.