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
A really strange error...
src/foo.ts imports from Node internal:
src/foo.ts
import type { Writable } from 'node:stream'
tsup config:
{ "clean": true, "sourcemap": true, "watch": false, "silent": true, "entry": [ "src/index.ts" ], "dts": { "resolve": true }, "tsconfig": "tsconfig.build.json", "outDir": "lib", "format": [ "cjs", "esm" ], "shims": true, "target": "node18.19.1" }
Marking the node:stream package as external fixes the problem.
node:stream
"external": [ "node:stream" ],
Am I doing something wrong?
I have never had to add externals to the list in any other packages before.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
A really strange error...
src/foo.ts
imports from Node internal:tsup config:
Marking the
node:stream
package as external fixes the problem.Am I doing something wrong?
I have never had to add externals to the list in any other packages before.
Upvote & Fund
The text was updated successfully, but these errors were encountered: