From 226a7519adf08e7dbc62fe3b04653ceba941f96b Mon Sep 17 00:00:00 2001 From: sapphi-red <49056869+sapphi-red@users.noreply.github.com> Date: Mon, 16 Dec 2024 20:36:24 +0900 Subject: [PATCH] fix(ssr): recrete ssrCompatModuleRunner on restart --- 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) {