Wrangler compiling in an incompatible way?
As mentioned here coding-help
I'm using wrangler to publish a worker, but there seems to be a bug.
In my code
When using
And in the dashboard when I try to test it it tells me
Though when I change it manually to the former again:
It seems to work and goes to the next error about a constructor.
Changing the
Looks like a bug to me. Any ideas of what I can try?
I'm using wrangler to publish a worker, but there seems to be a bug.
In my code
index.ts I export default like soWhen using
wrangler publish it compiles to:And in the dashboard when I try to test it it tells me
Though when I change it manually to the former again:
It seems to work and goes to the next error about a constructor.
Changing the
tsconfig.json file doesn't seem to make any difference at all.Looks like a bug to me. Any ideas of what I can try?

