TypeScript - Reflect-Metadata decorators being omitted from bundle
Heyo. I'm having an issue with the way Wrangler is bundling my Worker code. For some reason, "design:type" metadata added by the reflect-metadata package isn't being included in the bundled file, however, other decorators do appear.
I've tried compiling the Worker code normally with tsc and all metadata was included, so I was just wondering how I can "tell" Wrangler to include those metadata values or if its possible to change the build script entirely.
First image is an example of code compiled with tsc, second is Wrangler's code.
Cheers.
1 Reply
Wrangler's esbuild version doesn't have decorators support, so it's probably that
You'd have to do a custom build in the interim