Open moltar opened 3 months ago
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.
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