Closed
Description
- node 8+
Steps to reproduce
function plugin() {
return async function transformer(tree) {
tree.children = await somethingAsync()
return tree
}
}
Expected behaviour
Expect to be the same as
function plugin() {
return function transformer(tree) {
return somethingAsync()
.then((result) => {
tree.children = result
return tree
})
}
}
Actual behaviour
The plugin is skipped.