💻
How are you using Babel?
@babel/cli
Input code
async function* fn() {
class A {
[yield 1]() {}
}
class B extends A {
[await 1]() {}
}
}
Here is REPL
Configuration file name
babel.config.json
Configuration
{
"sourceType": "unambiguous",
"presets": ["@babel/preset-env"],
"plugins": [
"@babel/plugin-transform-runtime"
]
}
Current and expected behavior
After being transformed by babel, there is a bug run by node
SyntaxError: missing ) after argument list
Environment
- babel
-
-
- ├── @babel/generator@7.17.3
-
- ├── @babel/plugin-transform-runtime@7.17.0
-
- ├── @babel/preset-env@7.16.11
- Node: [v17.3.0]
- npm version [8.5.2]
- os [ubuntu 20.04]
Possible solution
No response
Additional context
I run babel use cmd as follows
npx babel poc.js -o res/poc.js
💻
How are you using Babel?
@babel/cli
Input code
Here is REPL
Configuration file name
babel.config.json
Configuration
{ "sourceType": "unambiguous", "presets": ["@babel/preset-env"], "plugins": [ "@babel/plugin-transform-runtime" ] }Current and expected behavior
After being transformed by babel, there is a bug run by node
Environment
Possible solution
No response
Additional context
I run babel use cmd as follows