Skip to content

Commit 0072dd1

Browse files
committed
chore: remove mpa support
1 parent aa70d20 commit 0072dd1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/index.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,14 @@ export function withPwa(config: UserConfig) {
3232

3333
let api: VitePluginPWAAPI | undefined
3434

35-
const mpa = config.mpa === true
36-
3735
vitePlugins.push(
3836
VitePWA({ ...pwaPluginOptions }),
3937
{
4038
name: 'vite-plugin-pwa:vitepress',
4139
apply: 'build',
4240
enforce: 'post',
4341
configResolved(resolvedViteconfig) {
44-
if (!resolvedViteconfig.build.ssr || mpa)
42+
if (!resolvedViteconfig.build.ssr)
4543
api = resolvedViteconfig.plugins.find(p => p.name === 'vite-plugin-pwa')?.api
4644
},
4745
},

0 commit comments

Comments
 (0)