You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using tsup as an easy way to create a node package with both cjs and esm (for backwards compatibility). I don't want to bundle anything.
I'm using bundle: false which is fine, I get .js and .mjs files out but the .d.ts files are whack. It looks as though the types are for a bundled version.
Is this expected and/or is there a workaround? I guess I might just have to use tsc.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am using tsup as an easy way to create a node package with both cjs and esm (for backwards compatibility). I don't want to bundle anything.
I'm using
bundle: false
which is fine, I get.js
and.mjs
files out but the.d.ts
files are whack. It looks as though the types are for a bundled version.Is this expected and/or is there a workaround? I guess I might just have to use tsc.
Here is the code: https://github.com/BotTech/memfs/tree/beta
Beta Was this translation helpful? Give feedback.
All reactions