Skip to content

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
@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.

3 participants