$service-worker
The service-worker module existed in SvelteKit 2, and provided access to the following exports:
base
A root-relative path representing the application's base path. Use resolve(...) from $app/paths instead.
build
A string[] array of files generated by Vite. Empty during development. Use immutable from $app/manifest instead.
files
A string[] array of files in your static directory. Use assets from $app/manifest instead.
prerendered
A string[] array of prerendered pages. Empty during dev. Use prerendered from $app/manifest instead.
version
The value of config.version.name, used for populating caches. Use version from $app/env instead.
Edit this page on GitHub llms.txt
previous next