-
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
decorators on uninitialized class fields are not working when useDefineForClassFields: false
#3913
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Related: #3911, vitejs/vite#18105
Full code to compare with tsc is here https://github.com/hi-ogawa/reproductions/tree/main/vite-18105-decorator-useDefineForClassFields
Here is a part of the code on esbuild try
Vite uses
useDefineForClassFields: false
for esbuild transform when users don't not explicitly set, but this specific decorator usages being not working seems to lead to a bit surprising behavior.The text was updated successfully, but these errors were encountered: