Why writing this is wrong:
'use strict'
async example1 () {
return 'example 1'
}
async example2 () {
return 'example 2'
}
export { example1, example2 }
But it is fine like this:
export default {
async example1 () {
return 'example 1'
},
async example2 () {
return 'example 2'
}
}
It is quite confusing. I assume the latter is wrong too.
Any explanations for this?