Skip to content

Commit

Permalink
fix: only check balanced in css modules mode
Browse files Browse the repository at this point in the history
  • Loading branch information
ahabhgk committed May 23, 2024
1 parent aee3d0d commit d1e7d0c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/dependencies.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2059,11 +2059,12 @@ impl<'s, D: HandleDependency<'s>, W: HandleWarning<'s>> Visitor<'s> for LexDepen
let mode_data = self.mode_data.as_mut().unwrap();
mode_data.composes_local_classes.reset_to_initial();
}

debug_assert!(
self.balanced.is_empty(),
"balanced should be empty when end of selector"
);
}
debug_assert!(
self.balanced.is_empty(),
"balanced should be empty when end of selector"
);
Some(())
}

Expand Down

0 comments on commit d1e7d0c

Please sign in to comment.