📅  最后修改于: 2022-03-11 15:04:11.703000             🧑  作者: Mango
export default async function ({ addon, global, console }) {
// This WON'T work!
sayHello();
}
function sayHello() {
console.log("Hello, " + addon.auth.username);
// Error: addon is not defined!
}