Skip to content

Commit

Permalink
correctly export .Stream
Browse files Browse the repository at this point in the history
  • Loading branch information
calvinmetcalf committed Jun 15, 2015
1 parent a9c1477 commit fd31267
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions readable.js
@@ -1,9 +1,10 @@
(function (){
var Stream = (function (){
try {
exports.Stream = require('st' + 'ream'); // hack to fix a circular dependency issue when used with browserify
return require('st' + 'ream'); // hack to fix a circular dependency issue when used with browserify
} catch(_){}
}());
exports = module.exports = require('./lib/_stream_readable.js');
exports.Stream = Stream || module;
exports.Readable = exports;
exports.Writable = require('./lib/_stream_writable.js');
exports.Duplex = require('./lib/_stream_duplex.js');
Expand Down

0 comments on commit fd31267

Please sign in to comment.