Skip to content

Support TC39 decorators#169

Merged
AlexMost merged 1 commit into
ttag-org:masterfrom
pelme:push-wstpxnumkrut
May 13, 2026
Merged

Support TC39 decorators#169
AlexMost merged 1 commit into
ttag-org:masterfrom
pelme:push-wstpxnumkrut

Conversation

@pelme
Copy link
Copy Markdown
Contributor

@pelme pelme commented May 12, 2026

This commit adapts the babel configuration to support the syntax propsed by the TC39 decorator proposal: https://github.com/tc39/proposal-decorators

This proposal is now stage 3 (recommended to be implemented). It is likely that this is the syntax that will be used for a decorators for a long time.

The syntax is similar (using the @decorator) to the "legacy" decorators so this should be backward compatible with code using the old decorators.

Fixes #168.

This commit adapts the babel configuration to support the syntax propsed by the TC39 decorator proposal:
https://github.com/tc39/proposal-decorators

This proposal is now stage 3 (recommended to be implemented). It is
likely that this is the syntax that will be used for a decorators for a
long time.

The syntax is similar (using the @decorator) to the "legacy" decorators
so this should be backward compatible with code using the old
decorators.

Fixes ttag-org#168.
@pelme pelme force-pushed the push-wstpxnumkrut branch from 5a9759a to 11570fc Compare May 13, 2026 19:55
@pelme
Copy link
Copy Markdown
Contributor Author

pelme commented May 13, 2026

I just rebased the PR on master now that #171 was merged!

@AlexMost
Copy link
Copy Markdown
Member

oh, nice! thanks. Will release the new version ASAP

@AlexMost AlexMost merged commit ae870eb into ttag-org:master May 13, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ttag extract fails with TC39 decorators

2 participants