Closed
Description
This is an example file test.js
:
require('readable-stream');
Run the following commands (esbuild@0.17.12):
esbuild --bundle test.js
It outputs:
✘ [ERROR] Could not resolve "stream"
node_modules/.pnpm/readable-stream@4.4.0/node_modules/readable-stream/lib/stream/promises.js:7:8:
7 │ require('stream')
╵ ~~~~~~~~
The package "stream" wasn't found on the file system but is built into node. Are you trying to
bundle for node? You can use "--platform=node" to do that, which will remove this error.
1 error
If I use version 4.3.0
, it will output correctly.
Metadata
Metadata
Assignees
Labels
No labels