-
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
Regression in 0.18.2: decorators should prevent tree-shaking #3164
Comments
I'm marking this issue as |
I thought you might be able to find the problem by looking at But anyway, this typescript file |
You still have not posted a self contained way to reproduce the issue and/or an adequate description of the problem. I’m not going to hunt through your code to try to figure out what your issue is. |
Maybe the reason is that esbuild considers decorated classes to be side-effect free since 0.18.2. Got caught by this while trying to update deps in an app where components are registered using decorators. Was this (breaking?) change expected? Should the app codebase be migrated? |
Thanks for the report. That's really a new issue, but since this issue isn't actionable and I still don't know what it was about, I can make this issue about your problem instead. It's not intentional that decorators are now considered side-effect free. I'll fix that in the next release. |
I love you so much for finally... |
hi everyone
yesterday i'm update esbuild to to latest version.
I'm tried to correctly upgrade to 0.18.x based release note, and don't find my problem.
Thank you for telling me my problem according to my configs
esbuild.js
tsconfig.base.json
tsconfig.json
Thanks to all the contributors of this good project!
The text was updated successfully, but these errors were encountered: