We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Since it is using deprecated Duplexer library, (with 15M weekly downloads btw) which has only CJS build to it.
Building my package with tsup (goes through fine) and trying to run the "binary", I get the following error message:
tsup
throw Error('Dynamic require of "' + x + '" is not supported'); ^ Error: Dynamic require of "stream" is not supported
First line of duplexer's build is:
var Stream = require("stream")
And it is causing problems.
My ts config uses NodeNext as module and moduleResolution, and I have "type": "module" in package.json.
NodeNext
module
moduleResolution
"type": "module"
Once I drop gzip-size import from my code, all builds and works fine.
gzip-size
Let me know how I can help and thank you for the library! ❤️
Seemingly related issue with esbuild. I use tsup but these are similar tools.
The text was updated successfully, but these errors were encountered:
Added repository with reproduction of an issue I'm experiencing.
Sorry, something went wrong.
No branches or pull requests
Since it is using deprecated Duplexer library, (with 15M weekly downloads btw) which has only CJS build to it.
Building my package with
tsup
(goes through fine) and trying to run the "binary", I get the following error message:First line of duplexer's build is:
And it is causing problems.
My ts config uses
NodeNext
asmodule
andmoduleResolution
, and I have"type": "module"
in package.json.Once I drop
gzip-size
import from my code, all builds and works fine.Let me know how I can help and thank you for the library! ❤️
Seemingly related issue with esbuild. I use tsup but these are similar tools.
The text was updated successfully, but these errors were encountered: