Skip to content

Commit

Permalink
fix(ssr): implement empty read() on node stream
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 authored and iwusong committed May 13, 2022
1 parent 2799d28 commit 9be832d
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 9be832d

Please sign in to comment.