diff options
author | 2023-01-04 18:54:32 -0800 | |
---|---|---|
committer | 2023-01-04 18:55:16 -0800 | |
commit | 6b777c4b0b6ea0ef961c2acf5e0483fcb52bf1e7 (patch) | |
tree | d1733dacdbef81e122ea7d9b330ccd399c71dab4 /src | |
parent | 81a6aef7714c677af9d79eba77ac72879c3a7a72 (diff) | |
download | bun-6b777c4b0b6ea0ef961c2acf5e0483fcb52bf1e7.tar.gz bun-6b777c4b0b6ea0ef961c2acf5e0483fcb52bf1e7.tar.zst bun-6b777c4b0b6ea0ef961c2acf5e0483fcb52bf1e7.zip |
Fix default export for stream
cc @alexlamsl
Diffstat (limited to 'src')
-rw-r--r-- | src/bun.js/streams.exports.js | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/src/bun.js/streams.exports.js b/src/bun.js/streams.exports.js index 5df244950..6f03e23eb 100644 --- a/src/bun.js/streams.exports.js +++ b/src/bun.js/streams.exports.js @@ -5814,7 +5814,7 @@ var require_ours = __commonJS({ const CustomStream = require_stream(); const promises = require_promises(); const originalDestroy = CustomStream.Readable.destroy; - module.exports = CustomStream.Readable; + module.exports = CustomStream; module.exports._uint8ArrayToBuffer = CustomStream._uint8ArrayToBuffer; module.exports._isUint8Array = CustomStream._isUint8Array; module.exports.isDisturbed = CustomStream.isDisturbed; @@ -6251,16 +6251,9 @@ var NativeWritable = class NativeWritable extends Writable { } }; -var stream_exports, wrapper; -stream_exports = require_ours(); -wrapper = - (0, - function () { - return stream_exports; - }); - -wrapper[Symbol.for("CommonJS")] = true; -export default wrapper; +const stream_exports = require_ours(); +stream_exports[Symbol.for("CommonJS")] = 0; +export default stream_exports; export var _uint8ArrayToBuffer = stream_exports._uint8ArrayToBuffer; export var _isUint8Array = stream_exports._isUint8Array; export var isDisturbed = stream_exports.isDisturbed; |