Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

fix: remove unused require('stream') and extend webpack tests#519

Closed
jeswr wants to merge 6 commits intonodejs:mainnodejs/readable-stream:mainfrom
jeswr:chore/fix-webpackingjeswr/readable-stream:chore/fix-webpackingCopy head branch name to clipboard
Closed

fix: remove unused require('stream') and extend webpack tests#519
jeswr wants to merge 6 commits intonodejs:mainnodejs/readable-stream:mainfrom
jeswr:chore/fix-webpackingjeswr/readable-stream:chore/fix-webpackingCopy head branch name to clipboard

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.