babel/packages/babel-helper-member-expression-to-functions
Huáng Jùnliàng 5f83a8c1a2
Handle cases when ?? and ?. is in binding initializers (#12032)
* test: add test for nullish coalescing

Co-Authored-By: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>

* test: add control group

* test: add tests for optional chaining

Co-Authored-By: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>

* test: add tests on optional chaining mixed with private class elements

* fix: wrap member chains to IIFE when it is in parameter default

* chore: add more testcases

* chore: update test fixtures

* fix: NodePath.get is always non nullish

Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
2020-10-03 10:03:58 -04:00
..
2020-08-25 14:37:30 -04:00

@babel/helper-member-expression-to-functions

Helper function to replace certain member expressions with function calls

See our website @babel/helper-member-expression-to-functions for more information.

Install

Using npm:

npm install --save-dev @babel/helper-member-expression-to-functions

or using yarn:

yarn add @babel/helper-member-expression-to-functions --dev