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(transformer/typescript): remove type-only import = when only_remove_type_imports is true #8275

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

Conversation

Dunqing
Copy link
Member

@Dunqing Dunqing commented Jan 6, 2025

close: #8230
close: rolldown/rolldown#3287

Related PR in Babel: #8230

I have compared our output with TypeScript, and it is the same as TypeScript, Babel's implementation currently hasn't removed imports referenced by type-only TSImportEqualsDeclaration

@Dunqing Dunqing requested a review from overlookmotel as a code owner January 6, 2025 09:28
@github-actions github-actions bot added A-transformer Area - Transformer / Transpiler C-bug Category - Bug labels Jan 6, 2025
Copy link
Member Author

Dunqing commented Jan 6, 2025


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • 0-merge - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

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

@Dunqing Dunqing changed the title fix(transformer/typescript): remove type-only import = fix(transformer/typescript): remove type-only import = when only_remove_type_imports is true Jan 6, 2025
Copy link

codspeed-hq bot commented Jan 6, 2025

CodSpeed Performance Report

Merging #8275 will not alter performance

Comparing 01-06-fix_transformer_typescript_remove_type-only_import_ (60102a5) with main (ecc789f)

Summary

✅ 29 untouched benchmarks

@Dunqing Dunqing force-pushed the 01-06-fix_transformer_typescript_remove_type-only_import_ branch 2 times, most recently from 37b9c95 to 939063e Compare January 6, 2025 09:45
@Dunqing Dunqing requested a review from Boshen January 6, 2025 09:45
@Dunqing Dunqing force-pushed the 01-06-fix_transformer_typescript_remove_type-only_import_ branch from 939063e to 60102a5 Compare January 6, 2025 10:11
@Dunqing Dunqing requested a review from Boshen January 7, 2025 02:03
@underfin

This comment was marked as resolved.

@overlookmotel overlookmotel removed their request for review January 7, 2025 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-transformer Area - Transformer / Transpiler C-bug Category - Bug
Projects
None yet
3 participants