Skip to content
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

Add error handling to workbox import. #646

Merged
merged 2 commits into from
Jan 24, 2024
Merged

Add error handling to workbox import. #646

merged 2 commits into from
Jan 24, 2024

Conversation

cpojer
Copy link
Contributor

@cpojer cpojer commented Jan 22, 2024

I've seen the the dynamic import for workbox fail on older browsers, see #645. This PR adds basic error handling to ignore the workbox setup in such situations.

Fixes #645.

Copy link

netlify bot commented Jan 22, 2024

Deploy Preview for vite-plugin-pwa-legacy ready!

Name Link
🔨 Latest commit 949a4ec
🔍 Latest deploy log https://app.netlify.com/sites/vite-plugin-pwa-legacy/deploys/65b17d2b0edd2b0008b779f4
😎 Deploy Preview https://deploy-preview-646--vite-plugin-pwa-legacy.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@cpojer
Copy link
Contributor Author

cpojer commented Jan 23, 2024

Updated.

@userquin
Copy link
Member

Small refactor done:

imagen

Copy link
Member

@userquin userquin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thx

@userquin userquin merged commit b3350c8 into vite-pwa:main Jan 24, 2024
4 checks passed
renovate bot added a commit to SebastianGoeb/chinese-chart that referenced this pull request Jan 26, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [vite-plugin-pwa](https://togithub.com/vite-pwa/vite-plugin-pwa) |
[`0.17.4` ->
`0.17.5`](https://renovatebot.com/diffs/npm/vite-plugin-pwa/0.17.4/0.17.5)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/vite-plugin-pwa/0.17.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/vite-plugin-pwa/0.17.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/vite-plugin-pwa/0.17.4/0.17.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/vite-plugin-pwa/0.17.4/0.17.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>vite-pwa/vite-plugin-pwa (vite-plugin-pwa)</summary>

###
[`v0.17.5`](https://togithub.com/vite-pwa/vite-plugin-pwa/releases/tag/v0.17.5)

[Compare
Source](https://togithub.com/vite-pwa/vite-plugin-pwa/compare/v0.17.4...v0.17.5)

#####    🚀 Features

- Add error handling when importing workbox-window.  -  by
[@&#8203;cpojer](https://togithub.com/cpojer) and
[@&#8203;userquin](https://togithub.com/userquin) in
[vite-pwa/vite-plugin-pwa#646
[<samp>(b3350)</samp>](https://togithub.com/vite-pwa/vite-plugin-pwa/commit/b3350c8)
- Override dev-dist assets between restarts  -  by
[@&#8203;userquin](https://togithub.com/userquin) in
[vite-pwa/vite-plugin-pwa#650
[<samp>(0e679)</samp>](https://togithub.com/vite-pwa/vite-plugin-pwa/commit/0e6799f)

#####     [View changes on
GitHub](https://togithub.com/vite-pwa/vite-plugin-pwa/compare/v0.17.4...v0.17.5)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "before 4am" (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:eyJjcmVhdGVkSW5WZXIiOiIzNy4xMzUuMCIsInVwZGF0ZWRJblZlciI6IjM3LjEzNS4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error handling for workbox import
2 participants