DEV Community

Discussion on: Svelte Kit, the first ‘serverless-first’ framework?

Collapse
 
joshuajarman profile image
Joshua Jarman

Making PWA with Sapper and the service-worker was quite easy.

Any idea if there will be a PWA adaptor? or a way of adding a service-worker to a a Svelte Kit build? I've been searching everywhere for any information on this.

Thanks!

Collapse
 
jbmoelker profile image
Jasper Moelker

Hi Joshua. Good question. I didn't spot anything in the early release of Svelte Kit yet. You can add your own service worker and there's some templates and tutorials out there to add them to your Svelte app, but of course that's not as easy as with Sapper. I do remember Sapper having service worker support from early on. So I imagine Svelte Kit will have the same. Though maybe it will be an optional package just like the adapters.