From fb2e8ccba5a2aab8279616ac5b2d289195cf874a Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Tue, 16 Nov 2021 00:27:45 +0800 Subject: [PATCH] fix(bridge): revert optimization exclusion for `vue-demi` (#1932) --- packages/bridge/src/vite/vite.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/bridge/src/vite/vite.ts b/packages/bridge/src/vite/vite.ts index 9502a54bf4..ca25bc0dbc 100644 --- a/packages/bridge/src/vite/vite.ts +++ b/packages/bridge/src/vite/vite.ts @@ -51,14 +51,15 @@ async function bundle (nuxt: Nuxt, builder: any) { css: resolveCSSOptions(nuxt), optimizeDeps: { exclude: [ - ...nuxt.options.build.transpile.filter(i => typeof i === 'string'), 'ufo', 'date-fns', 'nanoid', 'vue', 'vue2', - 'vue2-bridge', - 'vue-demi' + 'vue2-bridge' + // TODO(Anthony): waiting for Vite's fix https://github.com/vitejs/vite/issues/5688 + // ...nuxt.options.build.transpile.filter(i => typeof i === 'string'), + // 'vue-demi' ] }, esbuild: {