-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Class missing metadata field in certain cases #3781
Labels
Comments
evanw
added a commit
to evanw/decorator-tests
that referenced
this issue
May 26, 2024
This was referenced Jun 30, 2024
This was referenced Jul 10, 2024
This was referenced Jul 21, 2024
This was referenced Jul 22, 2024
This was referenced Sep 17, 2024
This was referenced Sep 22, 2024
[Snyk] Upgrade: , , , , esbuild, rimraf, rollup, typescript, vitest
leonardoadame/Affiliate-tech#812
Open
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The class is missing the
[Symbol.metadata]
field if the class itself is not decorated.Test code:
esbuild
output:tsc
output:The
@fix
decorator fixes the code becauseesbuild
stores metadata in the_init2
array and adds it to theClass[Symbol.metadata]
field only when the class is replaced:The text was updated successfully, but these errors were encountered: