-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
fix(es/decorators): Fix a regression about class expressions #8102
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
swc-bump:
- swc_ecma_transforms_proposal
_ts_decorate([ | ||
Prop(), | ||
_ts_metadata("design:type", typeof BigInt === "undefined" ? Object : BigInt) | ||
], Example.prototype, "prop", void 0); | ||
export { Example as default }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a bugfix
@@ -17,13 +17,14 @@ define([ | |||
function state() {} | |||
class Controller { | |||
} | |||
class _class extends Controller { | |||
var _class; | |||
_class = class _$class extends Controller { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minifier will be able to merge these, so I think this change is fine.
Related issue: