From faf00f526fd28e27ee60ccb6ae69c24cb2c2cd24 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Thu, 18 Aug 2022 10:06:37 +0200 Subject: [PATCH] fix(vite): dedupe `vue` in client bundle (#6735) --- packages/vite/src/client.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/vite/src/client.ts b/packages/vite/src/client.ts index 35001c19ed..f896f07b30 100644 --- a/packages/vite/src/client.ts +++ b/packages/vite/src/client.ts @@ -43,7 +43,8 @@ export async function buildClient (ctx: ViteBuildContext) { alias: { '#build/plugins': resolve(ctx.nuxt.options.buildDir, 'plugins/client'), '#internal/nitro': resolve(ctx.nuxt.options.buildDir, 'nitro.client.mjs') - } + }, + dedupe: ['vue'] }, build: { manifest: true,