diff --git a/packages/vite/src/streaming/streamHelpers.ts b/packages/vite/src/streaming/streamHelpers.ts index a51ccf727daf..04544b186a4a 100644 --- a/packages/vite/src/streaming/streamHelpers.ts +++ b/packages/vite/src/streaming/streamHelpers.ts @@ -149,9 +149,21 @@ function createServerInjectionStream({ outputStream.write(elementsAtTheEnd) // This will find all the elements added by PortalHead during a server render, and move them into
- outputStream.write( - "" - ) + // @TODO remove the whitespace to save them bytes later + outputStream.write(``) outputStream.end() },