Skip to content

Commit

Permalink
fixes #205 reuse existing import of "stream"
Browse files Browse the repository at this point in the history
  • Loading branch information
calvinmetcalf committed Apr 27, 2016
1 parent 4c2d8e2 commit fd20cb5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,9 @@
"dependencies": {
"core-util-is": "~1.0.0",
"inherits": "~2.0.1",
"inline-process-browser": "~2.0.1",
"isarray": "~1.0.0",
"process-nextick-args": "~1.0.6",
"string_decoder": "~0.10.x",
"unreachable-branch-transform": "~0.5.0",
"util-deprecate": "~1.0.1"
},
"devDependencies": {
Expand Down
6 changes: 2 additions & 4 deletions readable.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ exports.Duplex = require('./lib/_stream_duplex.js');
exports.Transform = require('./lib/_stream_transform.js');
exports.PassThrough = require('./lib/_stream_passthrough.js');

// inline-process-browser and unreachable-branch-transform make sure this is
// removed in browserify builds
if (!process.browser && process.env.READABLE_STREAM === 'disable') {
module.exports = require('stream');
if (!process.browser && process.env.READABLE_STREAM === 'disable' && Stream) {
module.exports = Stream;
}

0 comments on commit fd20cb5

Please sign in to comment.