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 TSImportEqualsDeclaration is typing is not remove. #8230

Open
underfin opened this issue Jan 3, 2025 · 0 comments · May be fixed by #8275
Open

The TSImportEqualsDeclaration is typing is not remove. #8230

underfin opened this issue Jan 3, 2025 · 0 comments · May be fixed by #8275
Assignees
Labels
C-bug Category - Bug

Comments

@underfin
Copy link
Contributor

underfin commented Jan 3, 2025

Input

import { X } from "abc";
// assume Y is a type only namespace
import Z = X.Y.Z;

function a(t: Z.T) {
  console.log(t);
}

Output

import { X } from "abc";
var Z = X.Y.Z;
function a(t) {
	console.log(t);
}

Expected

The Z is a typing, it should be removed.

function a(t) {
  console.log(t);
}

The bable also have a issue babel/babel#15942, and also have a pr to resolve it babel/babel#17025.

related rolldown/rolldown#3287

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