babel-plugin-console
babel-plugin-console copied to clipboard
Fails to transpile if function assigned to computed property
Bug
babel-plugin-consoleversion: 0.2.0nodeversion: v6.9.4npm(oryarn) version: yarn v0.27.5
{
[ActionTypes.FOO_BAR](payload) {
// ...
console.scope('debug')
},
}
Put console.scope inside a function, which is assigned to a computed property.
Result: transpile fails, says Cannot read property 'name' of undefined.
Thanks @miklosme for the bug report :+1:
I'm away from a keyboard for rest of the week so I'll take a look when I'm back