Skip to content

Commit

Permalink
Fix Blob for older node versions and webpack. (#618)
Browse files Browse the repository at this point in the history
`Readable` isn't a named export
  • Loading branch information
mcuppi authored and bitinn committed Apr 27, 2019
1 parent c9805a2 commit 1a88481
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/blob.js
@@ -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');
Expand Down

0 comments on commit 1a88481

Please sign in to comment.