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
281 B
JSON

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