-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
service worker doesn't work on vite #20
Comments
Are you trying to set up the RDH in a service worker instance, or is it something else? Lines 1 to 28 in 572c78b
|
I think a common approach is to intercept and parse all HTML requests so that you can inject an initialization script tag into them if you want to use a service worker to register RDH with high priority. As the service worker instance has its own context, the RDH registered here will not affect js context from the main thread. |
Unfortunately, Vite doesn't have a built-in way to specify module load order without plugins or build configuration. |
Is it acceptable to build a unplugin so that we can add an |
rank bippy import below react, even though service worker file exists, not registering
repro: https://stackblitz.com/edit/vitejs-vite-ywcbkokx?file=src%2Fmain.tsx,src%2FApp.tsx&terminal=dev
The text was updated successfully, but these errors were encountered: