Skip to content

Conversation

@jeswr
Copy link
Contributor

@jeswr jeswr commented May 15, 2023

Closes #516

Potentially supercedes #517 by also including a fix; which is removing require('stream') in https://github.com/jeswr/readable-stream/blob/3caace80d34bacaeb3d2aa760f3bd0fbdd9ae3d3/lib/stream/promises.js.

However this comment makes me suspicious of whether this one-liner is the desired fix - hence why I have opened this as a separate PR.

const { isIterable, isNodeStream, isWebStream } = require('../internal/streams/utils')
const { pipelineImpl: pl } = require('../internal/streams/pipeline')
const { finished } = require('../internal/streams/end-of-stream')
require('stream')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to come from the build step, not modified here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah - didn't realise that the contents of lib/ were generated directly from the core nodejs codebase.

#520 should solve this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

When upgrading from 4.3.0 to 4.4.0, using esbuild --bundle to build will report an error Could not resolve "stream"

2 participants