I'm not sure if this a bug per-se, but I encountered a Worker runtime behavior that wasn't reproducible in Miniflare.
tl;dr Using TransformStream will often trigger a runtime error: "The script will never generate a response"
My workers library, Keywork, has a JSXResponse
class that accepts some React JSX and returns an instance of Response
. This works fine when the JSX is first rendered to a string and then fed to Response's body, since this is really just a convenience wrapper around a few functions:
const app = new WorkerRouter()