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

break: use named exports #71

Open
wants to merge 1 commit into
base: next
Choose a base branch
from
Open

break: use named exports #71

wants to merge 1 commit into from

Conversation

lukeed
Copy link
Collaborator

@lukeed lukeed commented May 14, 2021

This is a "might as well" for the next major anyway.
The main motivation is for TypeScript definitions and/or Intellisense.

Without this change, and with the current definitions, then both modules will always throw a type error (or lack a signature) when using import statements.

If the definitions changed to be ESM-compliant, then require usage for CommonJS would throw type error (or lack a signature).

Named exports make all variants work in harmony

@lukeed lukeed requested a review from terkelg May 14, 2021 22:07
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.

None yet

1 participant