File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
turbopack/crates/turbopack-css/src Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -468,7 +468,13 @@ async fn process_content(
468468 // `.await` in the loop.
469469 let warnings = warnings. read ( ) . unwrap ( ) . iter ( ) . cloned ( ) . collect :: < Vec < _ > > ( ) ;
470470 for err in warnings. iter ( ) {
471- match err. kind {
471+ match & err. kind {
472+ // Ignore :global pseudo-class errors from preprocessors like LESS
473+ lightningcss:: error:: ParserError :: SelectorError (
474+ lightningcss:: error:: SelectorError :: UnsupportedPseudoClass ( name) ,
475+ ) if name. as_ref ( ) == "global" => {
476+ continue ;
477+ }
472478 lightningcss:: error:: ParserError :: UnexpectedToken ( _)
473479 | lightningcss:: error:: ParserError :: UnexpectedImportRule
474480 | lightningcss:: error:: ParserError :: SelectorError ( ..)
@@ -495,7 +501,7 @@ async fn process_content(
495501 }
496502
497503 _ => {
498- // Ignore
504+ // Ignore other warnings
499505 }
500506 }
501507 }
You can’t perform that action at this time.
0 commit comments