Skip to content

Commit

Permalink
Address PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
mattcompiles committed Oct 20, 2023
1 parent 7103543 commit 4ab7e55
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions packages/transformers/js/core/src/collect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -692,12 +692,7 @@ impl Visit for Collect {
return;
}
Expr::This(_this) => {
if self.is_module {
// Don't track this bindings if ESM syntax is present
return;
}

if self.in_module_this {
if !self.is_module && self.in_module_this {
handle_export!();
} else if !self.in_class {
if let MemberProp::Ident(prop) = &node.prop {
Expand Down

0 comments on commit 4ab7e55

Please sign in to comment.