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();