Project: chromium Issues People Development process History Sign in
New issue
Advanced search Search tips
Starred by 7 users
Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment
Implement "module" workers
Project Member Reported by nhiroki@chromium.org, Jan 11 2017 Back to list
Specs of Dedicated/Shared/ServiceWorkers define "module" type.

  let worker = new Worker("worker.js", { type: "module" });

In this type, worker scripts are loaded as ES6 modules and import statement is available on the worker contexts. If the second parameter is omitted, worker scripts are loaded as plain scripts as usual ("classic" type).

Spec of Dedicated/SharedWorkers:
https://html.spec.whatwg.org/multipage/workers.html#module-worker-example

Spec of ServiceWorkers (see "type" in the section):
https://w3c.github.io/ServiceWorker/#service-worker-concept
 
 issue 627945  is for worklets.
Cc: neis@chromium.org
 Issue 739764  has been merged into this issue.
Comment 4 by nhiroki@chromium.org, Aug 14 (4 days ago)
Cc: tzik@chromium.org
Relevant spec discussion:
"How can we use SW module link in backward-compatible manner?"
https://github.com/w3c/ServiceWorker/issues/1186
Sign in to add a comment