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: print ExportSpecifier.exportKind #1338

Merged

Conversation

ashsearle
Copy link
Contributor

@ashsearle ashsearle commented Jul 5, 2023

This fixes a small oversight: ExportSpecifier supports exportKind in a similar fashion to ImportSpecifier supporting importKind, but the print logic was missing.

Without this change it's impossible to generate an ExportNamedDeclaration containing a mix of type and value exports.

See this broken jscodeshift example in AST Explorer

This is in the spirit of changes described in the original type-only PR for TypeScript, as well as changes for SWC in 1.2.92

Copy link
Collaborator

@eventualbuddha eventualbuddha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@eventualbuddha eventualbuddha merged commit d0afcd6 into benjamn:master Jul 11, 2023
6 checks passed
@eventualbuddha
Copy link
Collaborator

Published in v0.23.3.

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