diff options
Diffstat (limited to 'deps/npm/node_modules/readable-stream/readable.js')
-rw-r--r-- | deps/npm/node_modules/readable-stream/readable.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/deps/npm/node_modules/readable-stream/readable.js b/deps/npm/node_modules/readable-stream/readable.js index 6222a579864..0b0228a36db 100644 --- a/deps/npm/node_modules/readable-stream/readable.js +++ b/deps/npm/node_modules/readable-stream/readable.js @@ -10,3 +10,9 @@ exports.Writable = require('./lib/_stream_writable.js'); 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'); +} |