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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: using in switch is not compiled #16422

Open
1 task
nicolo-ribaudo opened this issue Apr 9, 2024 · 0 comments
Open
1 task

[Bug]: using in switch is not compiled #16422

nicolo-ribaudo opened this issue Apr 9, 2024 · 0 comments

Comments

@nicolo-ribaudo
Copy link
Member

馃捇

  • Would you like to work on a fix?

How are you using Babel?

Other (Next.js, Gatsby, vue-cli, ...)

Input code

{
  switch (1) {
    case 1:
      using a = 1;
    case 2:
      using b = 2;
  }
  using c = 4;
}

https://babeljs.io/repl#?browsers=&build=&builtIns=false&corejs=3.21&spec=false&loose=false&code_lz=N4KABGDODuCWAuBjAFmAFARgJRlBCiAhpAKZgYBc4-EArpLAHYDmYhYAvOQNzUHFkATFRp0GLMACNOYQbwgBfavSatEMgCy8FQA&debug=false&forceAllTransforms=false&modules=commonjs&shippedProposals=false&circleciRepo=&evaluate=true&fileSize=false&timeTravel=false&sourceType=script&lineWrap=true&presets=stage-3%2Ctypescript&prettier=false&targets=&version=7.24.4&externalPlugins=&assumptions=%7B%7D

Configuration file name

No response

Configuration

No response

Current and expected behavior

using is not transpiled, but it shuold

Environment

v7.24.4

Possible solution

No response

Additional context

No response

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

No branches or pull requests

2 participants