* Optimize `transform-async-to-generator` output - remove wrapper if the function length is zero. - remove wrapper if the `assumptions.ignoreFunctionLength` is `true`. * chore: update test case and code style * chore: add test
@babel/helper-wrap-function
Helper to wrap functions inside a function call.
See our website @babel/helper-wrap-function for more information.
Install
Using npm:
npm install --save @babel/helper-wrap-function
or using yarn:
yarn add @babel/helper-wrap-function