Service Worker fails in dev if runtimeOnly flag is set to false #1333
Labels
❗ p4-important
Priority 4: bugs that violate documented behavior, or significantly impact perf
Type: Improvement
Includes backwards-compatible fixes
Reporting a bug?
If I configure the VueI18nPlugin with the runtimeOnly flag to false, I cannot run in dev mode a service worker injected with the vite-plugin-pwa plugin with strategy 'injectManifest'. I receive as error 'cannot use import statement outside a module'.
Setting the flag to true, everything works as expected.
However, with the flag set to true, the named interpolation is not working when the app is built. See this #1278
Expected behavior
I should be able to use the serviceworker properly.
Reproduction
Custom service worker file:
vite.config.js plugins configuration:
System Info
Screenshot
No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: