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
Hello! One frustrating thing when clicking on a type or function imported from another package in the same monorepo when using tsup is that clicking on the functions or types make you jump to the bundled code instead of the original .ts file.
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
-
Hello! One frustrating thing when clicking on a type or function imported from another package in the same monorepo when using tsup is that clicking on the functions or types make you jump to the bundled code instead of the original .ts file.
I found this to be an alternative:
This lets tsc create the tree of types, and tsup just bundle the .js and .mjs. This way you can freely jump into any original ts file.
However, using tsc is slow.
Is there any way to achieve the same only with tsup? Maybe a missing feature?
Something like
bundleDeclarations: false
would be great for DX and could even be automatic while tsup --watch is activeBeta Was this translation helpful? Give feedback.
All reactions