babel/packages/babel-helper-wrap-function
magic-akari 910ece5e2a
Optimize transform-async-to-generator output (#14122)
* 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
2022-01-08 21:01:20 +01:00
..
2017-07-25 11:07:01 -04:00
2021-12-31 00:13:43 +00:00
2021-11-29 10:03:23 -05:00

@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