From 7d6dd5d1d655d173668192509f63ac4ebf7af299 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BF=A0=20/=20green?= Date: Tue, 17 Dec 2024 04:46:27 +0900 Subject: [PATCH] fix(ssr): recreate ssrCompatModuleRunner on restart (#18973) --- packages/vite/src/node/server/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/vite/src/node/server/index.ts b/packages/vite/src/node/server/index.ts index 5828a90be3043d..32a3371cef527b 100644 --- a/packages/vite/src/node/server/index.ts +++ b/packages/vite/src/node/server/index.ts @@ -690,6 +690,7 @@ export async function _createServer( server._ssrCompatModuleRunner?.close(), ]) server.resolvedUrls = null + server._ssrCompatModuleRunner = undefined }, printUrls() { if (server.resolvedUrls) {