JavaScript modules in service workers
The navigator.serviceWorker.register()
method accepts { type: "module" }
to load scripts that use import
and export
. Also known as ECMAScript modules or ESM in service workers.
The navigator.serviceWorker.register()
method accepts { type: "module" }
to load scripts that use import
and export
. Also known as ECMAScript modules or ESM in service workers.