From fdd6a91a515a79d71aac93a6de2e43db6c17676a Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Thu, 31 Mar 2022 15:10:06 +0100 Subject: [PATCH] fix(vite): optimise `vue` by default (#3997) --- packages/vite/src/vite.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/vite/src/vite.ts b/packages/vite/src/vite.ts index e41c21913b..3c89ddedfc 100644 --- a/packages/vite/src/vite.ts +++ b/packages/vite/src/vite.ts @@ -53,7 +53,8 @@ export async function bundle (nuxt: Nuxt) { optimizeDeps: { entries: [ resolve(nuxt.options.appDir, 'entry.ts') - ] + ], + include: ['vue'] }, css: resolveCSSOptions(nuxt), build: {