-
-
Notifications
You must be signed in to change notification settings - Fork 222
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
vite sourcemap: 'hidden' doesn't quite work #566
Comments
I see the real issue is workbox: Once (if ever) this is fixed, it will then need to be updated in this repo... |
@719media I guess the problem in Vite build and/or workbox-build: by default the pwa plugin will build the sw using FYI: We're checking this another repo, this repo will use it soon, it seems very active (it is a workbox fork): |
If vite config is
build.sourcemap: 'hidden';
, the sourcemap is correctly generated forservice-worker.js.map
andworkbox.js.map
, but the sourceMappingURL is erroneously still included in the minified js filesservice-worker.js
andworkbox.js
, even tho it should be hidden from inclusion at the end of the files.It looks like vite-plugin-pwa coerces the value of build.sourcemap to a boolean, which means it isn't able to properly use the value.
The text was updated successfully, but these errors were encountered: