Skip to content

Commit

Permalink
fix: remove the unnecessary logic for inserting semicolons
Browse files Browse the repository at this point in the history
  • Loading branch information
inottn committed Aug 19, 2024
1 parent 46c0de9 commit d1a6cad
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions crates/rspack_plugin_javascript/src/visitors/semicolon.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,21 +124,11 @@ impl<'a> Visit for InsertedSemicolons<'a> {
n.visit_children_with(self)
}

fn visit_export_decl(&mut self, n: &swc_core::ecma::ast::ExportDecl) {
self.post_semi(&n.span);
n.visit_children_with(self)
}

fn visit_named_export(&mut self, n: &swc_core::ecma::ast::NamedExport) {
self.post_semi(&n.span);
n.visit_children_with(self)
}

fn visit_export_default_decl(&mut self, n: &swc_core::ecma::ast::ExportDefaultDecl) {
self.post_semi(&n.span);
n.visit_children_with(self)
}

fn visit_export_default_expr(&mut self, n: &swc_core::ecma::ast::ExportDefaultExpr) {
self.post_semi(&n.span);
n.visit_children_with(self)
Expand Down

0 comments on commit d1a6cad

Please sign in to comment.