[webkit-dev] Request for position: ES modules for Service Workers

Sam Sneddon gsnedders at apple.com
Fri Mar 12 05:47:49 PST 2021



> On 11 Mar 2021, at 23:37, Ghazale Hosseinabadi via webkit-dev <webkit-dev at lists.webkit.org> wrote:
> 
> Hi webkit-dev,
> 
> This is a request for WebKit's position on ES modules for Service Workers. 
> Explainer:
> https://github.com/w3c/ServiceWorker/commit/6d9500e99e764c12b117c63d10107e094d243662 <https://github.com/w3c/ServiceWorker/commit/6d9500e99e764c12b117c63d10107e094d243662>
> Spec:
> https://w3c.github.io/ServiceWorker <https://w3c.github.io/ServiceWorker/#navigator-service-worker-register%20(see%20%22type%22%20in%20the%20section)> (see "type" in the section)
> Existing Chromium bug:
> https://bugs.chromium.org/p/chromium/issues/detail?id=824647 <https://bugs.chromium.org/p/chromium/issues/detail?id=824647>
> Summary:
> JavaScript will support modules in service workers. Setting 'module' type by the constructor's type attribute, worker scripts are loaded as ES modules and the import statement is available on worker contexts. 

Given WebKit has implemented it (https://trac.webkit.org/changeset/273224/webkit/ <https://trac.webkit.org/changeset/273224/webkit/>), and it is in STP 122, I think it is a safe assumption that WebKit is supportive of it. ��

/Sam

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20210312/bb24c204/attachment.htm>


More information about the webkit-dev mailing list