Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Oct 9, 2023
1 parent fa278b9 commit 1f0bd8a
Showing 1 changed file with 5 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use std::{borrow::Cow, cell::RefCell, collections::HashMap, rc::Rc};
use inflector::Inflector;
use once_cell::sync::Lazy;
use regex::Regex;
use swc_atoms::{js_word, JsWord};
use swc_atoms::JsWord;
use swc_common::{
collections::{AHashMap, AHashSet},
util::take::Take,
Expand Down Expand Up @@ -333,13 +333,10 @@ impl VisitMut for TranspileCssProp {
elem.opening.attrs.retain(|attr| {
match attr {
JSXAttrOrSpread::JSXAttr(attr) => {
if matches!(
attr.name,
JSXAttrName::Ident(Ident {
sym: js_word!(""),
..
})
) {
if match &attr.name {
JSXAttrName::Ident(Ident { sym, .. }) => sym.is_empty(),
_ => false,
} {
return false;
}
}
Expand Down

0 comments on commit 1f0bd8a

Please sign in to comment.