Sounds like their detection for an Email handler is a bit flaky - I’d post in #email-routing
Sounds like their detection for an Email handler is a bit flaky - I’d post in #email-routing
wrangler.toml ?
--no-bundle to avoid bundling but that means you wouldn't be able to use any dependencies (like postal-mime)
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?
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",
}));
},
};--no-bundleanonymous functionconstdefaultasync function email<<>>export 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
};