fix(ssr): implement empty read() on node stream

fix #3846
close #3867
This commit is contained in:
Evan You 2022-05-10 10:04:56 +08:00
parent 30c33af839
commit c355c4b784

View File

@ -100,7 +100,7 @@ export function renderToNodeStream(
context: SSRContext = {}
): Readable {
const stream: Readable = __NODE_JS__
? new (require('stream').Readable)()
? new (require('stream').Readable)({ read() {} })
: null
if (!stream) {