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.

@alecgibson alecgibson force-pushed the no-default-export branch from fba2343 to 8d7cfef Compare May 7, 2024 15:37
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 force-pushed the no-default-export branch from 8d7cfef to 24d10d5 Compare May 7, 2024 15:38
@alecgibson alecgibson requested a review from dawidreedsy May 7, 2024 15:41
@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