esbuild icon indicating copy to clipboard operation
esbuild copied to clipboard

Feature request: Implement the Decorator Metadata proposal

Open uinz opened this issue 1 year ago • 3 comments

I think esbuild should behave the same way as typescript when compiling decorators

ts playground image

esbuild playground image

uinz avatar May 11 '24 08:05 uinz

This looks like a feature request for https://github.com/tc39/proposal-decorator-metadata, which is a separate proposal from https://github.com/tc39/proposal-decorators.

evanw avatar May 11 '24 12:05 evanw

This looks like a feature request for https://github.com/tc39/proposal-decorator-metadata, which is a separate proposal from https://github.com/tc39/proposal-decorators.

Thanks for your reply, you are right. It was me who confused the two proposals. esbuild is implemented for the tc39 standard.

uinz avatar May 11 '24 16:05 uinz

Reopening this issue because it should probably still be implemented. I'm not sure why it's a separate proposal (e.g. if that means the committee is more unsure about it?) but TypeScript has already implemented and shipped it so it's not going away any time soon. I'm just not sure how ready it is to be implemented at the moment.

See also:

  • https://github.com/tc39/proposal-decorator-metadata/issues/14
  • https://github.com/pzuraq/ecma262/pull/10

evanw avatar May 12 '24 19:05 evanw