chore: update pwa plugin dep (#104)

* chore: update pwa plugin dep

* chore: clean up
This commit is contained in:
userquin 2021-03-28 18:02:09 +02:00 committed by GitHub
parent ac0dca982d
commit b7824239a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 34 additions and 27 deletions

View File

@ -35,7 +35,7 @@
"vite-plugin-icons": "^0.4.0",
"vite-plugin-md": "^0.6.3",
"vite-plugin-pages": "^0.9.0",
"vite-plugin-pwa": "^0.6.3",
"vite-plugin-pwa": "^0.6.4",
"vite-plugin-vue-layouts": "^0.2.2",
"vite-plugin-windicss": "^0.10.4",
"vite-ssg": "^0.9.1"

View File

@ -26,7 +26,7 @@ devDependencies:
vite-plugin-icons: 0.4.0_7b398348a5a03a5e56ec36e9a45bb93b
vite-plugin-md: 0.6.3_vite@2.1.3
vite-plugin-pages: 0.9.0_b54ad54627b171bd906b4d2481023ecc
vite-plugin-pwa: 0.6.3
vite-plugin-pwa: 0.6.4
vite-plugin-vue-layouts: 0.2.2_vite@2.1.3
vite-plugin-windicss: 0.10.4_vite@2.1.3
vite-ssg: 0.9.1_9b00b36cd76dea3770044a08fbe215b0
@ -1217,12 +1217,12 @@ packages:
node: '>= 8'
resolution:
integrity: sha512-8Broas6vTtW4GIXTAHDoE32hnN2M5ykgCpWGbuXHQ15vEMqr23pB76e/GZcYsZCHALv50ktd24qhEyKr6wBtow==
/@rollup/plugin-babel/5.3.0_4b182fe8ebf5ef04e4e83ea4fbf0029c:
/@rollup/plugin-babel/5.3.0_2a01a512e39eae11588295e7d75d3576:
dependencies:
'@babel/core': 7.13.13
'@babel/helper-module-imports': 7.13.12
'@rollup/pluginutils': 3.1.0_rollup@2.43.0
rollup: 2.43.0
'@rollup/pluginutils': 3.1.0_rollup@2.43.1
rollup: 2.43.1
dev: true
engines:
node: '>= 10.0.0'
@ -1235,15 +1235,15 @@ packages:
optional: true
resolution:
integrity: sha512-9uIC8HZOnVLrLHxayq/PTzw+uS25E14KPUBh5ktF+18Mjo5yK0ToMMx6epY0uEgkjwJw0aBW4x2horYXh8juWw==
/@rollup/plugin-node-resolve/9.0.0_rollup@2.43.0:
/@rollup/plugin-node-resolve/9.0.0_rollup@2.43.1:
dependencies:
'@rollup/pluginutils': 3.1.0_rollup@2.43.0
'@rollup/pluginutils': 3.1.0_rollup@2.43.1
'@types/resolve': 1.17.1
builtin-modules: 3.2.0
deepmerge: 4.2.2
is-module: 1.0.0
resolve: 1.20.0
rollup: 2.43.0
rollup: 2.43.1
dev: true
engines:
node: '>= 10.0.0'
@ -1251,22 +1251,22 @@ packages:
rollup: ^1.20.0||^2.0.0
resolution:
integrity: sha512-gPz+utFHLRrd41WMP13Jq5mqqzHL3OXrfj3/MkSyB6UBIcuNt9j60GCbarzMzdf1VHFpOxfQh/ez7wyadLMqkg==
/@rollup/plugin-replace/2.4.2_rollup@2.43.0:
/@rollup/plugin-replace/2.4.2_rollup@2.43.1:
dependencies:
'@rollup/pluginutils': 3.1.0_rollup@2.43.0
'@rollup/pluginutils': 3.1.0_rollup@2.43.1
magic-string: 0.25.7
rollup: 2.43.0
rollup: 2.43.1
dev: true
peerDependencies:
rollup: ^1.20.0 || ^2.0.0
resolution:
integrity: sha512-IGcu+cydlUMZ5En85jxHH4qj2hta/11BHq95iHEyb2sbgiN0eCdzvUcHw5gt9pBL5lTi4JDYJ1acCoMGpTvEZg==
/@rollup/pluginutils/3.1.0_rollup@2.43.0:
/@rollup/pluginutils/3.1.0_rollup@2.43.1:
dependencies:
'@types/estree': 0.0.39
estree-walker: 1.0.1
picomatch: 2.2.2
rollup: 2.43.0
rollup: 2.43.1
dev: true
engines:
node: '>= 8.0.0'
@ -4879,11 +4879,11 @@ packages:
hasBin: true
resolution:
integrity: sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==
/rollup-plugin-terser/7.0.2_rollup@2.43.0:
/rollup-plugin-terser/7.0.2_rollup@2.43.1:
dependencies:
'@babel/code-frame': 7.12.13
jest-worker: 26.6.2
rollup: 2.43.0
rollup: 2.43.1
serialize-javascript: 4.0.0
terser: 5.6.1
dev: true
@ -4900,6 +4900,15 @@ packages:
fsevents: 2.3.2
resolution:
integrity: sha512-FRsYGqlo1iF/w3bv319iStAK0hyhhwon35Cbo7sGUoXaOpsZFy6Lel7UoGb5bNDE4OsoWjMH94WiVvpOM26l3g==
/rollup/2.43.1:
dev: true
engines:
node: '>=10.0.0'
hasBin: true
optionalDependencies:
fsevents: 2.3.2
resolution:
integrity: sha512-kvRE6VJbiv4d8m2nGeccc3qRpzOMghAhu2KeITjyZVCjneIFLPQ3zm2Wmqnl0LcUg3FvDaV0MfKnG4NCMbiSfw==
/run-parallel/1.2.0:
dependencies:
queue-microtask: 1.2.3
@ -5698,7 +5707,7 @@ packages:
vue-router: ^4.0.0
resolution:
integrity: sha512-7BxDOkY66udSi4ElBRnP8DnjDLYM6q/czJ1e/3Ok2Yzdgg+Wts6J6uX89SGdLboV8c/6iO6qFdSmBj3GxxIs3Q==
/vite-plugin-pwa/0.6.3:
/vite-plugin-pwa/0.6.4:
dependencies:
debug: 4.3.2
fast-glob: 3.2.5
@ -5707,7 +5716,7 @@ packages:
workbox-window: 6.1.2
dev: true
resolution:
integrity: sha512-wZxE2ZAKpwaig2JFOm6ama8p2iHBUZuHLEko1co7zDdnb6C/Epmih5aCIyHHvZKcFEaUxFogLQCnRDD41vd5cw==
integrity: sha512-YEKloivP8400uax8aqfYN2ygYjfok9xD/VgM9fyi1KVtP2JAgZKNPZnBc66HyaKPPDPr1TCeeXvB+aCSDSznqw==
/vite-plugin-vue-layouts/0.2.2_vite@2.1.3:
dependencies:
'@vue/compiler-sfc': 3.0.9_vue@3.0.9
@ -5972,9 +5981,9 @@ packages:
'@babel/preset-env': 7.13.12_@babel+core@7.13.13
'@babel/runtime': 7.13.10
'@hapi/joi': 16.1.8
'@rollup/plugin-babel': 5.3.0_4b182fe8ebf5ef04e4e83ea4fbf0029c
'@rollup/plugin-node-resolve': 9.0.0_rollup@2.43.0
'@rollup/plugin-replace': 2.4.2_rollup@2.43.0
'@rollup/plugin-babel': 5.3.0_2a01a512e39eae11588295e7d75d3576
'@rollup/plugin-node-resolve': 9.0.0_rollup@2.43.1
'@rollup/plugin-replace': 2.4.2_rollup@2.43.1
'@surma/rollup-plugin-off-main-thread': 1.4.2
common-tags: 1.8.0
fast-json-stable-stringify: 2.1.0
@ -5982,8 +5991,8 @@ packages:
glob: 7.1.6
lodash: 4.17.21
pretty-bytes: 5.6.0
rollup: 2.43.0
rollup-plugin-terser: 7.0.2_rollup@2.43.0
rollup: 2.43.1
rollup-plugin-terser: 7.0.2_rollup@2.43.1
source-map: 0.8.0-beta.0
source-map-url: 0.4.1
stringify-object: 3.3.0
@ -6227,7 +6236,7 @@ specifiers:
vite-plugin-icons: ^0.4.0
vite-plugin-md: ^0.6.3
vite-plugin-pages: ^0.9.0
vite-plugin-pwa: ^0.6.3
vite-plugin-pwa: ^0.6.4
vite-plugin-vue-layouts: ^0.2.2
vite-plugin-windicss: ^0.10.4
vite-ssg: ^0.9.1

View File

@ -3,10 +3,8 @@ import { UserModule } from '~/types'
export const install: UserModule = ({ isClient, router }) => {
if (isClient) {
router.isReady().then(async() => {
if (isClient) {
const { registerSW } = await import('virtual:pwa-register')
registerSW({ immediate: true })
}
const { registerSW } = await import('virtual:pwa-register')
registerSW({ immediate: true })
})
}
}