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(es/codegen): Fix codegen of TsModuleDecl #7319

Merged
merged 2 commits into from
Apr 24, 2023

Conversation

dsherret
Copy link
Contributor

@dsherret dsherret commented Apr 23, 2023

This improves/fixes the emit of TsModuleDecl when it hasn't been transformed to JavaScript. I'm working on a tool that emits typescript code as-is in some scenarios.

1;
}

export module Test.Test {
Copy link
Contributor Author

@dsherret dsherret Apr 23, 2023

Choose a reason for hiding this comment

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

Previously this would panic and now it doesn't.

Copy link
Member

@kdy1 kdy1 left a comment

Choose a reason for hiding this comment

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

Thanks!


swc-bump:

  • swc_ecma_codegen

@kdy1 kdy1 added this to the Planned milestone Apr 24, 2023
@kdy1 kdy1 changed the title fix: improve emit of TsModuleDecl fix(es/codegen): Fix codegen of TsModuleDecl Apr 24, 2023
@kdy1 kdy1 enabled auto-merge (squash) April 24, 2023 03:27
Copy link
Collaborator

@swc-bot swc-bot left a comment

Choose a reason for hiding this comment

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

Automated review comment generated by auto-rebase script

@kdy1 kdy1 merged commit 0ca05d8 into swc-project:main Apr 24, 2023
@dsherret dsherret deleted the ts_module_decl_emit branch April 24, 2023 13:16
@kdy1 kdy1 modified the milestones: Planned, v1.3.54 Apr 25, 2023
@swc-project swc-project locked as resolved and limited conversation to collaborators May 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants