-
-
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
feat!: new custom service worker build #629
Conversation
✅ Deploy Preview for vite-plugin-pwa-legacy ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM otherwise
# Conflicts: # package.json
@userquin thank you for resolving the linked issues. When can we expect this to be released as v0.18? Also, is there a way to use this in a project somehow, maybe through a |
[](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [vite-plugin-pwa](https://github.com/vite-pwa/vite-plugin-pwa) | [`^0.17.4` -> `^0.18.0`](https://renovatebot.com/diffs/npm/vite-plugin-pwa/0.17.5/0.18.1) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>vite-pwa/vite-plugin-pwa (vite-plugin-pwa)</summary> ### [`v0.18.1`](https://github.com/vite-pwa/vite-plugin-pwa/releases/tag/v0.18.1) [Compare Source](https://github.com/vite-pwa/vite-plugin-pwa/compare/v0.18.0...v0.18.1) ##### 🐞 Bug Fixes - Handle Vite's base properly in dev server - by [@​userquin](https://github.com/userquin) in [https://github.com/vite-pwa/vite-plugin-pwa/issues/657](https://github.com/vite-pwa/vite-plugin-pwa/issues/657) [<samp>(8cac9)</samp>](https://github.com/vite-pwa/vite-plugin-pwa/commit/8cac935) ##### [View changes on GitHub](https://github.com/vite-pwa/vite-plugin-pwa/compare/v0.18.0...v0.18.1) ### [`v0.18.0`](https://github.com/vite-pwa/vite-plugin-pwa/releases/tag/v0.18.0) [Compare Source](https://github.com/vite-pwa/vite-plugin-pwa/compare/v0.17.5...v0.18.0) ##### 🚨 Breaking Changes - New custom service worker build - by [@​userquin](https://github.com/userquin) in [https://github.com/vite-pwa/vite-plugin-pwa/issues/629](https://github.com/vite-pwa/vite-plugin-pwa/issues/629) [<samp>(865fd)</samp>](https://github.com/vite-pwa/vite-plugin-pwa/commit/865fdad) ##### 🐞 Bug Fixes - Register client module and prompt - by [@​userquin](https://github.com/userquin) in [https://github.com/vite-pwa/vite-plugin-pwa/issues/633](https://github.com/vite-pwa/vite-plugin-pwa/issues/633) [<samp>(b3474)</samp>](https://github.com/vite-pwa/vite-plugin-pwa/commit/b347432) ##### [View changes on GitHub](https://github.com/vite-pwa/vite-plugin-pwa/compare/v0.17.5...v0.18.0) </details> --- ### Configuration 📅 **Schedule**: Branch creation - "before 4am on Monday" (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/SebastianGoeb/chinese-chart). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xNzMuMCIsInVwZGF0ZWRJblZlciI6IjM3LjE3My4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
After some digging, we found the problem in
esbuild
and the solution:.mjs
extension instead.js
.mjs
file to the original after the build.mjs.map
when sourcemap file generatedThanks to @benmccann for filing the issue on Vite vitejs/vite#15379 and @Rich-Harris for the solution on SvelteKit sveltejs/kit#11400, this PR is a copy of the SvelteKit solution.
This PR also includes:
plugins
including newbuildPlugins
option for Rollup and Vite plugins: added an example and the corresponding test in vue-route example using Vite plugin with a simple virtual moduleNOTE: added
lodash-es
to test it in Vite ecosystem-ci.closes #566
closes #571
closes #575
closes #615
closes #625
closes #655
supersedes #572