Execute serialized browser scripts from the production bundle
When a Cloudflare Worker embeds browser JavaScript by calling function.toString(), test the generated HTML from the production bundle, not only the source functions. esbuild name-preservation transforms can insert calls to a bundle-scoped helper inside serialized function bodies.…