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

transformer: tsc vs babel on enum transformation #8342

Open
Boshen opened this issue Jan 8, 2025 Discussed in #8341 · 2 comments
Open

transformer: tsc vs babel on enum transformation #8342

Boshen opened this issue Jan 8, 2025 Discussed in #8341 · 2 comments
Assignees

Comments

@overlookmotel
Copy link
Contributor

overlookmotel commented Jan 8, 2025

Confirmed that this weird behavior is also present in Babel. Babel REPL

I am no TypeScript expert, so I may be wrong, but my understanding is: TSC is the "source of truth" on TypeScript transforms, and Babel's TS transform should replicate TSC's behavior. If it doesn't, then that's a bug in Babel.

@branchseer May I suggest raising an issue on Babel? That would help "flush out" answer on whether they diverged from TSC for any good reason, or if it's simply a bug.

@branchseer
Copy link
Contributor

issue logged for Babel: babel/babel#17049

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants