Files
d89313c7a6 fix: Throw error when compiling super() in arrow functions with default / rest parameters (#15163)
* Fix: Throw when super in arrow with default / rest

* Add allowInsertArrowWithRest and improve throw

* Update packages/babel-traverse/src/path/conversion.ts

Co-authored-by: Huáng Jùnliàng <[email protected]>

Co-authored-by: Huáng Jùnliàng <[email protected]>
2022-11-22 12:25:23 -05:00

5 lines
304 B
JSON

{
"plugins": ["transform-parameters"],
"throws": "When using '@babel/plugin-transform-parameters', it's not possible to compile `super()` in an arrow function with default or rest parameters without compiling classes.\nPlease add '@babel/plugin-transform-classes' to your Babel configuration."
}