-
-
Notifications
You must be signed in to change notification settings - Fork 599
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
commonjs: this
is incorrectly transformed in class field initializers
#922
Comments
this
is incorrectly transformed in class field initializers this
is incorrectly transformed in class field initializers
Hey folks. This issue hasn't received any traction for 60 days, so we're going to close this for housekeeping. If this is still an ongoing issue, please do consider contributing a Pull Request to resolve it. Further discussion is always welcome even with the issue closed. If anything actionable is posted in the comments, we'll consider reopening it. ⓘ |
Any thoughts? |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
Folks, this is the not the place for discussion of issue management in this repo or org. Snark is not constructive. There are plenty of other mediums for venting. The message we've chosen for the bot is clear and concise. Please cease off-topic discussion in this issue. |
Fair enough but can we please reopen this ticket for visibility? It's manifesting in upstream tools like Vite. |
Expected Behavior
this
in class fields should not be transformed.Actual Behavior
this
is transformed tocommonjsGlobal
.Additional Information
A workaround is to set
ignoreGlobal: true
.if the word
require
is in the module then this issue does not occur (even if it exists only in a comment). So another workaround is literally a "magic comment":// require <<< DON'T TOUCH OR THE BUILD BREAKS
The text was updated successfully, but these errors were encountered: