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

fix: named exports for v5 compatibility #292

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

Conversation

ajcrites
Copy link
Contributor

The change from module.exports to export default no longer allows you to use named imports. This would be a breaking change, but it's also incompatible with the current type declarations.

This could be fixed using commonjs module and 'export =' in TypeScript, but this is incompatible with Rollup. The simplest answer seems to be just explicitly using named exports based on the type declarations as well as including the default export.

Fixes #291

The change from module.exports to export default no longer allows you to use named imports. This would be a breaking change, but it's also incompatible with the current type declarations.

This could be fixed using commonjs module and 'export =' in TypeScript, but this is incompatible with Rollup. The simplest answer seems to be just explicitly using named exports based on the type declarations as well as including the default export.
@stale
Copy link

stale bot commented Jun 23, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the 🚧 stale label Jun 23, 2021
@mCodex mCodex removed the 🚧 stale label Jun 27, 2021
@stale
Copy link

stale bot commented Jul 27, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

v6 does not allow for named imports with TypeScript Change
2 participants