8 lines
248 B
JavaScript
8 lines
248 B
JavaScript
|
import { ReadableStream, TransformStream } from './web/sandbox/readable-stream'
|
||
|
|
||
|
// Polyfill Web Streams in the Node.js environment
|
||
|
if (!global.ReadableStream) {
|
||
|
global.ReadableStream = ReadableStream
|
||
|
global.TransformStream = TransformStream
|
||
|
}
|