Skip to main content

Module service_worker

Module service_worker 

Source

Structs§

ServiceWorkerAssetReference
Reference created for navigator.serviceWorker.register(new URL(...), { scope }). It resolves the URL to the service-worker source and wraps it in a ServiceWorkerEntryModule (carrying the scope) so the source is discoverable in the page’s module graph (but not bundled into it).
ServiceWorkerAssetReferenceCodeGen
ServiceWorkerEntryModule
A marker module that wraps a service-worker entry source plus its registration scope. It carries the inner source so next-api can discover it in the module graph and compile it standalone.

Functions§

service_worker_chunk_filename
The root-served file name for a service worker registered at scope. One worker is supported per scope; the scope is encoded into the (flat, root-served) file name so distinct scopes get distinct files.