Skip to content

Commit

Permalink
fix(transform_conformance): only print semantic mismatch errors when …
Browse files Browse the repository at this point in the history
…output is correct

closes #5166
  • Loading branch information
Boshen committed Sep 7, 2024
1 parent 24d6a47 commit 4e7709d
Show file tree
Hide file tree
Showing 6 changed files with 3,066 additions and 4,967 deletions.
2 changes: 1 addition & 1 deletion crates/oxc_transformer/src/options/babel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ impl BabelOptions {
}

pub fn is_module(&self) -> bool {
self.source_type.as_ref().map_or(false, |s| matches!(s.as_str(), "module"))
self.source_type.as_ref().map_or(false, |s| s.as_str() == "module")
}

pub fn is_unambiguous(&self) -> bool {
Expand Down
Loading

0 comments on commit 4e7709d

Please sign in to comment.