Skip to content

fix: print ExportSpecifier.exportKind#1338

Merged
eventualbuddha merged 1 commit into
benjamn:masterfrom
ashsearle:fix-export-specifier-export-kind
Jul 11, 2023
Merged

fix: print ExportSpecifier.exportKind#1338
eventualbuddha merged 1 commit into
benjamn:masterfrom
ashsearle:fix-export-specifier-export-kind

Conversation

@ashsearle

@ashsearle ashsearle commented Jul 5, 2023

Copy link
Copy Markdown
Contributor

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

@eventualbuddha eventualbuddha left a comment

Copy link
Copy Markdown
Collaborator

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

Copy link
Copy Markdown
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