Skip to content

Commit

Permalink
fix(ssr): implement empty read() on node stream
Browse files Browse the repository at this point in the history
fix #3846
close #3867
  • Loading branch information
yyx990803 committed May 10, 2022
1 parent 30c33af commit c355c4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/server-renderer/src/renderToStream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit c355c4b

Please sign in to comment.