-
-
Notifications
You must be signed in to change notification settings - Fork 123
Closed
Labels
🐛 type/bugThis is a problemThis is a problem👶 semver/patchThis is a backwards-compatible fixThis is a backwards-compatible fix💪 phase/solvedPost is donePost is done🗄 area/interfaceThis affects the public interfaceThis affects the public interface
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.
Root cause
Metadata
Metadata
Assignees
Labels
🐛 type/bugThis is a problemThis is a problem👶 semver/patchThis is a backwards-compatible fixThis is a backwards-compatible fix💪 phase/solvedPost is donePost is done🗄 area/interfaceThis affects the public interfaceThis affects the public interface