-
Notifications
You must be signed in to change notification settings - Fork 828
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
Breaking change from 6.4.2 to 6.5.0 #3033
Comments
Thanks for bringing this to our attention—we'll investigate. CC: @tropicadri |
The compatibility with existing code should be fixed in #3036. Switching to import {GenerateSW} from 'workbox-webpack-plugin'; should also resolve the issue, if you want a fix right now. (We currently don't have a |
Thanks for that workaround! I agree that not having a default export is a nicer coding style and I will gladly update my code to use the named import The documentation for workbox (https://developers.google.com/web/tools/workbox/guides/generate-service-worker/webpack) still recommends
So I guess my code style above is rather common. I admittedly didn't really think about it, but just followed the pattern provided in the docs. I can imagine, many other users of workbox did the same... If you are planning to remove the default export in the future, you might already want to update your docs today and recommend the future proof named import instead of the to-be-removed default import. That might save a few persons (like myself) an unnecessary breakage when upgrading to v7 in the future |
We're also about to migrate our docs over to developer.chrome.com. The new version of the most relevant doc uses the named export, so I think we're good: https://developer.chrome.com/docs/workbox/modules/workbox-webpack-plugin/ (I'll double-check to make sure there aren't any other lingering references to the default export.) |
This is fixed in https://github.com/GoogleChrome/workbox/releases/tag/v6.5.1 |
Library Affected:
workbox-webpack-plugin
Browser & Platform:
Node v17.5.0
Issue or Feature Request Description:
The relevant
webpack/prod.config.ts
:Worked without problems in 6.4.2, started failing in 6.5.0
Link to failed build on Github Actions: https://github.com/vogelsgesang/query-graphs/runs/5312503087?check_suite_focus=true
The text was updated successfully, but these errors were encountered: