* fix: ensure (a?.b)() has proper this * let test be more restrictive * fix: transformed member call should preserve computed * chore: revamp test files * refactor: simplify * fix: unwrap parthenthesizedExpression * add loose test cases * add `(a?.#b)()` support * add with-transform test cases * Update packages/babel-plugin-proposal-optional-chaining/src/index.js Co-authored-by: Justin Ridgewell <justin@ridgewell.name> * address review comments * update test fixtures Co-authored-by: Justin Ridgewell <justin@ridgewell.name>
@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