[Bug]: Babel crash when spreading an await inside function parameters #14364
Labels
i: needs triage
outdated
A closed issue/PR that is archived due to age. Recommended to make a new issue
馃捇
How are you using Babel?
@babel/cli
Input code
I'm using the Babel CLI on the .js file generated by https://github.com/vuejs/devtools/blob/main/packages/shell-electron/src/backend.js once Webpack have been run. The resulting source file contains this :
Which crashes Babel with the following error :
When I modify emit.js to log the expr variable, I have :
Configuration file name
No response
Configuration
The commang I run is simply :
Current and expected behavior
Babel CLI crashes and don't output the new file. But when I change the js to :
It don't crash anymore. Modifying the outputted file by hand is not a production-proof workflow though, and it'd be better if Babel could be run on it naturally.
Environment
Possible solution
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: