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

Type only import used in implements is not removed #3827

Closed
Austaras opened this issue Mar 3, 2022 · 3 comments · Fixed by #3766
Closed

Type only import used in implements is not removed #3827

Austaras opened this issue Mar 3, 2022 · 3 comments · Fixed by #3766
Labels
Milestone

Comments

@Austaras
Copy link
Member

Austaras commented Mar 3, 2022

Describe the bug

title

Input code

import { Foo } from 'foo'

const a = class B implements Foo {
  
}

Config

No response

Playground link

https://play.swc.rs/?version=1.2.146&code=H4sIAAAAAAAAAx3KMQoAIQwEwD6v2M5X2Fj4DxEFwbhi0ol%2FP7ipZ%2BjmcVxkEg%2F9UBE6GUQqlzkKIuosZkgYumfTttz%2BfgWQ9wGsHqkbQgAAAA%3D%3D&config=H4sIAAAAAAAAAz2PSwrDMAxE76J1Fm0WXeQEvYZw5eDgH5IMMSF3r5yS7obRzBt0wCYOlgMqshAPJT0r7rCA9kriOFSFCVTMUm50TkC7EmeMb4qVWH6%2BRRiz%2BMJpUJjQ6SVa1pDIeNi0JNTg4DRILEXM9RhldJFXsjyQzI%2F5aYMp5OD7ILiSKpPIP5wwr%2FHuDtadve%2Fl08b9uF64oC%2Fb%2FAIU2c5e7AAAAA%3D%3D

Expected behavior

Foo should be striped

Actual behavior

No response

Version

1.2.147

Additional context

No response

@kdy1
Copy link
Member

kdy1 commented Mar 9, 2022

Please file another issue instead.

@swc-project swc-project locked and limited conversation to collaborators Mar 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

Successfully merging a pull request may close this issue.

3 participants