valaxy 0.3.11 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,10 +12,12 @@ export async function createServer(
12
12
  // default editor vscode
13
13
  process.env.EDITOR = process.env.EDITOR || 'code'
14
14
 
15
- const server = await createViteServer(mergeConfig(
16
- viteConfig,
17
- await createViteConfig(options, serverOptions),
18
- ))
15
+ const server = await createViteServer(
16
+ mergeConfig(
17
+ viteConfig,
18
+ await createViteConfig(options, serverOptions),
19
+ ),
20
+ )
19
21
 
20
22
  return server
21
23
  }
@@ -1,12 +0,0 @@
1
- import type { UserModule } from '~/types'
2
-
3
- // https://github.com/antfu/vite-plugin-pwa#automatic-reload-when-new-content-available
4
- export const install: UserModule = ({ isClient, router }) => {
5
- if (!isClient)
6
- return
7
-
8
- router.isReady().then(async () => {
9
- const { registerSW } = await import('virtual:pwa-register')
10
- registerSW({ immediate: true })
11
- })
12
- }