gajus / gajus/babel-plugin-annotate-console-log
Not working with async functions; using asyncToGenerator
Open
- Dominant language
- JavaScript
- Stars
- 42
- Forks
- 3
- PR merge metrics
- No merged PRs in 30d
Description
I'm using `stage-0` preset which converts async functions to generator functions like this:
```js
async function foo () {
console.log('even?')
}
```
```js
let foo = (() => {
var _ref = _asyncToGenerator(function* () {
console.log('even?');
});
return function foo() {
return _ref.apply(this, arguments);
};
})();
```
`console.log` gets encapsulated in anonymous functions preventing `annotate-console-log` to do its thing.
Should it look for a couple parents up? `let foo = (...)`
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.