It will only transform export default
to module.exports
when
export default
without any named export
splitting: true
and cjsInterop: true
in the tsup.config.ts
.In other cases, it doesn't work.
https://github.com/LoTwT/tsup-cjs-default-export-issue
The result is false.
export const fn
in the index.ts
The result is true.
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too