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

feat(transformer/typescript): correct elide imports/exports statements #2995

Conversation

Dunqing
Copy link
Member

@Dunqing Dunqing commented Apr 15, 2024

remove ts annotations one benefit: IdentifierReference only used on js code

The TypescriptReferenceCollector implementation is inspired by https://github.com/swc-project/swc/blob/5f75019683a2f1dc03dda68d6832632ee5d8699c/crates/swc_ecma_transforms_typescript/src/strip_import_export.rs#L9-L99

This seems simpler to implement than using scope

@github-actions github-actions bot added the A-transformer Area - Transformer / Transpiler label Apr 15, 2024
Copy link
Member Author

Dunqing commented Apr 15, 2024

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @Dunqing and the rest of your teammates on Graphite Graphite

@Dunqing Dunqing marked this pull request as ready for review April 15, 2024 13:27
Copy link

codspeed-hq bot commented Apr 15, 2024

CodSpeed Performance Report

Merging #2995 will not alter performance

Comparing 04-15-feat_transformer_typescript_correct_elide_imports_exports_statements (df6d20c) with main (fd5002b)

Summary

✅ 30 untouched benchmarks

@Dunqing Dunqing requested a review from Boshen April 15, 2024 13:34
Copy link
Member

@Boshen Boshen left a comment

Choose a reason for hiding this comment

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

Nice!

@Boshen Boshen merged commit 6a53fa3 into main Apr 16, 2024
32 checks passed
@Boshen Boshen deleted the 04-15-feat_transformer_typescript_correct_elide_imports_exports_statements branch April 16, 2024 03:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-transformer Area - Transformer / Transpiler
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants