nodejs / readable-stream

Node-core streams for userland
https://nodejs.org/api/stream.html
Other
1.03k stars 227 forks source link

Lazily require abort-controller #478

Closed hildjj closed 2 years ago

hildjj commented 2 years ago

It throws when it has been bundled, then loaded in node.

How I found this:

This is probably an edge case that I hope nobody else runs into, but the fix for my problem shouldn't hurt anyone else.

hildjj commented 2 years ago

It looks like your Browsers / Browsers (macos-latest, firefox, webpack) test may have a timing issue. I saw a failure of that test in my fork that went away when I re-ran that test.

mcollina commented 2 years ago

Could you do the changes in the build script and re-run them?

Take a look at https://github.com/nodejs/readable-stream/blob/main/build/replacements.mjs.

hildjj commented 2 years ago

Things I didn't fix (yet) because they aren't germane to the issue at hand:

mcollina commented 2 years ago

Good work!