Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Nov 29, 2024
1 parent 99412de commit e60864d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion turbopack/crates/turbopack-css/src/process.rs
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,10 @@ async fn process_content(
}
}

for err in warnings.read().unwrap().iter() {
// We need to collect here because we need to avoid holding the lock while calling
// `.await` in the loop.
let warngins = warnings.read().unwrap().iter().cloned().collect::<Vec<_>>();
for err in warngins.iter() {
match err.kind {
lightningcss::error::ParserError::UnexpectedToken(_)
| lightningcss::error::ParserError::UnexpectedImportRule
Expand Down

0 comments on commit e60864d

Please sign in to comment.