From 54d47805de2803de183ab1dee6e05e161efc6d41 Mon Sep 17 00:00:00 2001 From: Noriyuki Shinpuku Date: Sat, 23 Mar 2024 07:40:08 +0900 Subject: [PATCH] chore(vite): revert comment about `closeAllConnections` (#21634) --- .../vite/src/executors/preview-server/preview-server.impl.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/vite/src/executors/preview-server/preview-server.impl.ts b/packages/vite/src/executors/preview-server/preview-server.impl.ts index 5ff7a56a8067a..c6957cf47196a 100644 --- a/packages/vite/src/executors/preview-server/preview-server.impl.ts +++ b/packages/vite/src/executors/preview-server/preview-server.impl.ts @@ -183,7 +183,7 @@ function closeServer(server?: Record): Promise { const { httpServer } = server; if (httpServer['closeAllConnections']) { // https://github.com/vitejs/vite/pull/14834 - // closeAllConnections was added in Node v19.2.0 + // closeAllConnections was added in Node v18.2.0 // typically is "as http.Server" but no reason // to import http just for this (httpServer as any).closeAllConnections();