anonymous function stored into a const in combination with a non-default export. But when changing it to named function async function email it stopped displaying the error that I had before. We're on to something
< with < and the > with >.
console.logs in JS code that are automatically stripped out by esbuild, unless some specific action is performed during the build?
anonymous functionconstasync function email<<>>console.logesbuildexport default {
async email(message: EmailMessage, env: Env, ctx: ExecutionContext): Promise<void> {
return await email(message, env, ctx);
},
};var src_default = {
async email(message, env, ctx) {
return await email(message, env, ctx);
}
};
export {
src_default as default,
email
};const devRetainer = {
name: "devRetainer",
setup(build) {
build.onLoad({ filter: /\.ts$/ }, async (args) => ({
contents: (await readFile(args.path, "utf8")).replace(/(\/\* Debugging Statement Start)|(Debugging Statement End \*\/)/g, ""),
loader: "ts",
}));
},
};