While experimentalDecorators setting in deno.json is now respected since https://github.com/denoland/deno/pull/22521emitDecoratorMetadata is not. Unlike the former issue, it doesn't seem to be an issue with deno compile. In fact, compiled deno apps work as expected locally.
This issue makes decorator-based dependency injection not viable in deno apps in Deploy.
Problem description
While
experimentalDecorators
setting in deno.json is now respected since https://github.com/denoland/deno/pull/22521emitDecoratorMetadata
is not. Unlike the former issue, it doesn't seem to be an issue withdeno compile
. In fact, compiled deno apps work as expected locally.This issue makes decorator-based dependency injection not viable in deno apps in Deploy.
Steps to reproduce
deno.json
server.ts
Expected behavior
Classes annotated with TC39 decorators should emit metadata that should be made available in
design:paramtypes
.Environment
works in this environment
deno 1.41.1 (release, x86_64-apple-darwin) v8 12.1.285.27 typescript 5.3.3
doesn't work in
Deno Deploy (as of March 10th 2024)
Possible solution
No response
Additional context
No response