Open switz opened 10 months ago
Seems like this is a dts
rollup issue? Again, not sure why it's different from my tsc
type generation output.
The underlying issue is actually a language server problem, but still would be curious why the drift in generation across rollup
and tsc
?
Is there a solution? I always need to add an extra default
require('xxx').default
I have code like:
export default foo;
but for some reason, tsup compiles this as:
I have confirmed that
tsc
does not compile this way, so it's something on tsup's side.here's my tsup.config:
this is breaking auto-import of packages for me, so I'd rather just use the normal
export default
which fixes the problem.Upvote & Fund