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

💥 Remove default exports #12

Merged
merged 1 commit into from
May 8, 2024
Merged

💥 Remove default exports #12

merged 1 commit into from
May 8, 2024

Conversation

alecgibson
Copy link
Collaborator

Default exports have bad interoperability between Common JS and ES Module imports, so the safest thing to do is just remove them.

This is a BREAKING change which removes our export default statements, and adds a linter rule to prevent us from adding them.

Default exports have [bad interoperability][1] between Common JS and
ES Module imports, so the safest thing to do is just remove them.

This is a **BREAKING** change which removes our export default
statements, and adds a linter rule to prevent us from adding them.

[1]: evanw/esbuild#1719 (comment)
@alecgibson alecgibson merged commit 29681c1 into main May 8, 2024
2 checks passed
@alecgibson alecgibson deleted the no-default-export branch May 8, 2024 11:17
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