Skip to content
New issue

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

feat: Only emit __esModule properties in CJS modules when there is a default export #15018

Merged
merged 3 commits into from
Jan 15, 2025

Conversation

lforst
Copy link
Member

@lforst lforst commented Jan 14, 2025

Ref: #3105

By having the __esModule property in files where we don't have default exports we may trick tooling into thinking that there would be a default export. The probability of that happening nowadays is pretty low, but since __esModule is a non-standard property we should limit it to the minimum.

@lforst lforst force-pushed the lforst-default-ts-export-fix branch from 33073e5 to ebc1621 Compare January 14, 2025 23:02
@lforst lforst merged commit 5e5bd44 into develop Jan 15, 2025
156 checks passed
@lforst lforst deleted the lforst-default-ts-export-fix branch January 15, 2025 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants