You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I check the source then see register service worker type is classic ( So we can't use ESM modules ? )
I changed the register service worker type to module it work in Chromium browsers but not Firefox (because FF doesn't support ESM in SW)
Thanks
The text was updated successfully, but these errors were encountered:
You can't use import statements in the service worker currently, if you look at your built service worker, you will see that the whole thing is built into one file. Without any imports or require() statements
Thanks for the lib,
I check the source then see register service worker type is
classic
( So we can't use ESM modules ? )I changed the register service worker type to
module
it work in Chromium browsers but not Firefox (because FF doesn't support ESM in SW)Thanks
The text was updated successfully, but these errors were encountered: