Open LoTwT opened 10 months ago
So, put in other words, cjsInterop
is broken ATM without splitting: true
.
So, put in other words,
cjsInterop
is broken ATM withoutsplitting: true
.
I dont know why. Fow now (ts@8.0.1), the cjsInterop
doesn't work anyway with splitting
be neither true
or false
.
Any progress here?
issue
It will only transform
export default
tomodule.exports
whenexport default
without anynamed export
splitting: true
andcjsInterop: true
in thetsup.config.ts
.In other cases, it doesn't work.
reproduction
https://github.com/LoTwT/tsup-cjs-default-export-issue
The result is false.
export const fn
in theindex.ts
The result is true.
Upvote & Fund