next.js
753f7483 - fix: lazy require node:stream and convert debug channel for node streams

Commit
79 days ago
fix: lazy require node:stream and convert debug channel for node streams - Replace top-level `import { Transform, PassThrough } from 'node:stream'` with lazy `getNodeStream()` helper in node-stream-helpers.ts and pipeable-stream-wrappers.ts. Webpack resolves both branches of conditional requires before DCE, so top-level imports cause UnhandledSchemeError even when the flag is false. - Convert web ReadableStream debug channels to Node Readable via Readable.fromWeb() in use-flight-response.tsx. Debug channels are always web streams but the node streams path expects Node Readable. - Update benchmark script to use minimal server, 50-req warmup, and two phases (c=1, c=100) with latency percentiles.
Author
Committer
Parents
Loading