-
-
Notifications
You must be signed in to change notification settings - Fork 323
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Prerequisites
- I'm using the latest version
- I've read the relevant documentation
- I've searched for existing issues
- I've checked the list of known issues
- I've read the issue reproduction guide
Reproduction url
https://stackblitz.com/edit/vitejs-vite-xdzv7lv3?file=src%2Fservice-worker.ts
Reproduction access
- I've made sure the reproduction is publicly accessible
Description of the issue
The file src/service-worker.ts, which is special-cased in sveltekit as a auto-registered service worker, is reported as unused by knip.
Moreover, any exported function that is only used in the service worker is reported as unused
Just run npm run knip in a terminal in the repro link. Relevant files are src/service-worker.ts and src/lib/exported.ts
See https://svelte.dev/docs/kit/service-workers
Oh and also, $service-worker is not resolved properly
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working