Skip to content
Discussion options

You must be logged in to vote

Yes, exactly. Compatibility is one reason. Also, I think package.json contains basic package information, so it is reasonable to export it by default.

This is controlled by exports.packageJson, which defaults to true:
https://tsdown.dev/reference/api/Interface.ExportsOptions#packagejson

If you don’t need it, you can disable this option.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by uncenter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants