From 77241fa65d35c938b82fa0444137f39ec3132873 Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Tue, 12 Jul 2022 20:56:07 +0800 Subject: [PATCH] fix(vite-node): transform mode of Vue files close #5543 --- packages/vite/src/vite-node.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/vite/src/vite-node.ts b/packages/vite/src/vite-node.ts index 6a855f16fd8..b1cf4621484 100644 --- a/packages/vite/src/vite-node.ts +++ b/packages/vite/src/vite-node.ts @@ -63,6 +63,10 @@ function createViteNodeMiddleware (ctx: ViteBuildContext) { /^#/, ...ctx.nuxt.options.build.transpile as string[] ] + }, + transformMode: { + ssr: [/.*/], + web: [] } }) return async (event) => {