Fix Blob for older node versions and webpack. (#618)
`Readable` isn't a named export
This commit is contained in:
parent
c9805a2868
commit
1a88481fbd
|
@ -1,7 +1,10 @@
|
||||||
// Based on https://github.com/tmpvar/jsdom/blob/aa85b2abf07766ff7bf5c1f6daafb3726f2f2db5/lib/jsdom/living/blob.js
|
// Based on https://github.com/tmpvar/jsdom/blob/aa85b2abf07766ff7bf5c1f6daafb3726f2f2db5/lib/jsdom/living/blob.js
|
||||||
// (MIT licensed)
|
// (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');
|
export const BUFFER = Symbol('buffer');
|
||||||
const TYPE = Symbol('type');
|
const TYPE = Symbol('type');
|
||||||
|
|
Loading…
Reference in New Issue