Skip to content

Commit

Permalink
Remove again
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Dec 12, 2022
1 parent 832a1c0 commit 38cd8ef
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions crates/swc_css_compat/src/custom_media_query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,18 @@ impl VisitMut for CustomMediaQueryTransform {
for mut q in n.queries.take() {
q.visit_mut_with(self);

dbg!(&q);
new.push(q);
if let MediaQuery {
modifier: None,
media_type: None,
keyword: None,
condition: None,
..
} = q
{
} else {
dbg!(&q);
new.push(q);
}

new.append(&mut self.new_medias);
}
Expand Down

0 comments on commit 38cd8ef

Please sign in to comment.