-
Notifications
You must be signed in to change notification settings - Fork 227
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When upgrading from 4.3.0
to 4.4.0
, using esbuild --bundle
to build will report an error Could not resolve "stream"
#516
Comments
This seems like another instance of the issue in #513, though this exposes it as a regression! |
The problem was introduced from this commit b345071#diff-241fa22640048b6a147dec92f1ebf253043a1c4c342c7e52402112eb3c58f8fbR7
I have another question: why |
4.3.0
to 4.4.0
, using esbuild --bundle to build will report an error Could not resolve "stream"
4.3.0
to 4.4.0
, using esbuild --bundle
to build will report an error Could not resolve "stream"
Once the issue is resolved we can remove the override again. More information: nodejs/readable-stream#516
In order to avoid such regressions in the future can I suggest adding a test to this library which webpacks import-all-test.js import * as all from 'readable-stream' using the config webpack.config.js const path = require("path");
module.exports = {
mode: "development",
entry: "./integration-tests/import-all-test.js",
output: {
path: path.resolve(__dirname, "integration-tests", "dist"),
filename: "import-all-test.js",
},
}; The test would just be running |
Would you like to send a PR to fix this (adjust the build scripts) or just with the test? |
#517 should cover the main point - I will see if I can make that config more restrictive after the issue is patched. |
The latest version has a webpack issue at the moment nodejs/readable-stream#516
The latest version has a webpack issue at the moment nodejs/readable-stream#516
This is an example file
test.js
:Run the following commands (esbuild@0.17.12):
It outputs:
If I use version
4.3.0
, it will output correctly.The text was updated successfully, but these errors were encountered: