-
-
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
fix(es/decorators): Handle default exported class #8691
Conversation
|
@@ -421,289 +421,273 @@ impl Decorator202203 { | |||
new_class_name | |||
} | |||
|
|||
fn handle_class_decl(&mut self, c: &mut ClassDecl) -> Option<Stmt> { | |||
// This function will call `visit` internally. | |||
fn handle_class_decl(&mut self, c: &mut ClassDecl) -> Stmt { |
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.
The git diff is misleading.
There are minimal logical changes within this function.
- Change
Option<Stmt>
toStmt
- All
class.decorators.is_empty
checks have been moved to the caller side.
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
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.
Automated review comment generated by auto-rebase script
Related issue: