* 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/plugin-transform-async-to-generator
Turn async functions into ES2015 generators
See our website @babel/plugin-transform-async-to-generator for more information.
Install
Using npm:
npm install --save-dev @babel/plugin-transform-async-to-generator
or using yarn:
yarn add @babel/plugin-transform-async-to-generator --dev