Fix Blob for older node versions and webpack. (#618)

`Readable` isn't a named export
This commit is contained in:
mcuppi 2019-04-27 02:34:01 -04:00 committed by David Frank
parent c9805a2868
commit 1a88481fbd
1 changed files with 4 additions and 1 deletions

View File

@ -1,7 +1,10 @@
// Based on https://github.com/tmpvar/jsdom/blob/aa85b2abf07766ff7bf5c1f6daafb3726f2f2db5/lib/jsdom/living/blob.js
// (MIT licensed)
import { Readable } from 'stream';
import Stream from 'stream';
// fix for "Readable" isn't a named export issue
const Readable = Stream.Readable;
export const BUFFER = Symbol('buffer');
const TYPE = Symbol('type');