fix(vite): dedupe vue in client bundle (#6735)

This commit is contained in:
Daniel Roe 2022-08-18 10:06:37 +02:00 committed by GitHub
parent 43e6c0295f
commit faf00f526f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,7 +43,8 @@ export async function buildClient (ctx: ViteBuildContext) {
alias: { alias: {
'#build/plugins': resolve(ctx.nuxt.options.buildDir, 'plugins/client'), '#build/plugins': resolve(ctx.nuxt.options.buildDir, 'plugins/client'),
'#internal/nitro': resolve(ctx.nuxt.options.buildDir, 'nitro.client.mjs') '#internal/nitro': resolve(ctx.nuxt.options.buildDir, 'nitro.client.mjs')
} },
dedupe: ['vue']
}, },
build: { build: {
manifest: true, manifest: true,