Exports from Seneca async plugins do not get exported
lilsweetcaligula opened this issue · 0 comments
lilsweetcaligula commented
async function async_plugin() {
return { exports: { message: 'async' } }
}
function plugin() {
return { exports: { message: 'sync' } }
}
Seneca()
.use(plugin)
.use(async_plugin)
.ready(function () {
const seneca = this
console.log(Object.keys(seneca.private$.exports))
// has 'plugin/message'
// does not have 'async_plugin/message'
})