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

The only_remove_type_imports: true is not strip import specifiers with type #8140

Open
underfin opened this issue Dec 27, 2024 · 0 comments · May be fixed by #8141
Open

The only_remove_type_imports: true is not strip import specifiers with type #8140

underfin opened this issue Dec 27, 2024 · 0 comments · May be fixed by #8141
Assignees
Labels
C-bug Category - Bug

Comments

@underfin
Copy link
Contributor

underfin commented Dec 27, 2024

reproduction

import { transform } from 'rolldown/experimental'

const result = transform('foo.ts', 'import { ref, type Ref } from "vue";', {
  typescript: {
    onlyRemoveTypeImports: true,
  },
})
console.log(result.code) // import { ref, type Ref } from "vue";

The output should be import { ref } from "vue"; (related babel/babel#15348)

refer: rolldown/rolldown#3244

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category - Bug
Projects
None yet
2 participants