We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
export default
module.exports
It will only transform export default to module.exports when
named export
splitting: true
cjsInterop: true
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
index.ts
The result is true.
The text was updated successfully, but these errors were encountered:
Wait evanw/esbuild#3281
Sorry, something went wrong.
So, put in other words, cjsInterop is broken ATM without splitting: true.
cjsInterop
I dont know why. Fow now (ts@8.0.1), the cjsInterop doesn't work anyway with splitting be neither true or false.
splitting
true
false
No branches or pull requests
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
The text was updated successfully, but these errors were encountered: