Worker is rejecting machine-generated ESModule
I'm using Scala.js, Scala compiler for ECMAScript (like TypeScript).
When I upload worker with
What kind of handler does Cloudflare accept? Only plain ESModule? Should I use old script style instead of ESModule?
My module that finally exports
When I upload worker with
scheduled handler, Cloudflare rejects content: The uploaded script has no registered event handlers. (10068).What kind of handler does Cloudflare accept? Only plain ESModule? Should I use old script style instead of ESModule?
My module that finally exports
default and scheduled: