tsc vs babel on enum transformation #8341
branchseer
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
oxc-transform currently follows babel's rules on enum transformation. IMHO it's a little bit weird about whether an identifier should be resolved to the enum member:
playground link
In contrast, tsc has a simpler rule:
playground link
Would it be better to switch to tsc's rule? I'd love to draft a PR if it's preferred.
Beta Was this translation helpful? Give feedback.
All reactions