Skip to content
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

Background service worker doesn't work with hot reloading #1

Open
hkorhola opened this issue Dec 5, 2021 · 0 comments
Open

Background service worker doesn't work with hot reloading #1

hkorhola opened this issue Dec 5, 2021 · 0 comments

Comments

@hkorhola
Copy link
Owner

hkorhola commented Dec 5, 2021

Note that background service worker doesn't work with Webpack extension reloader plugin. You need to reload the extension from Chrome extensions.

Reason: extension reloader uses window object in the compiled bundle and background service workers don't have access to that https://developers.google.com/web/fundamentals/primers/service-workers

Someone has created a new version to mitigate that, see: rubenspgcavalcante/webpack-extension-reloader#125

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant