File tree Expand file tree Collapse file tree 1 file changed +20
-15
lines changed Expand file tree Collapse file tree 1 file changed +20
-15
lines changed Original file line number Diff line number Diff line change @@ -580,22 +580,27 @@ async fn validate_pages_css_imports(
580
580
. into_iter ( )
581
581
. map ( async |issue| {
582
582
// We allow imports of global CSS files which are inside of `node_modules`.
583
- if !issue
584
- . module
585
- . ident ( )
586
- . path ( )
587
- . await ?
588
- . path
589
- . contains ( "/node_modules/" )
590
- {
591
- // TODO this is suboptimal because it's celling in a loop with a somewhat arbitrary
592
- // order
593
- issue. resolved_cell ( ) . emit ( ) ;
594
- }
595
- Ok ( ( ) )
583
+ Ok (
584
+ if !issue
585
+ . module
586
+ . ident ( )
587
+ . path ( )
588
+ . await ?
589
+ . path
590
+ . contains ( "/node_modules/" )
591
+ {
592
+ Some ( issue)
593
+ } else {
594
+ None
595
+ } ,
596
+ )
596
597
} )
597
- . try_join ( )
598
- . await ?;
598
+ . try_flat_join ( )
599
+ . await ?
600
+ . into_iter ( )
601
+ . for_each ( |issue| {
602
+ issue. resolved_cell ( ) . emit ( ) ;
603
+ } ) ;
599
604
600
605
Ok ( ( ) )
601
606
}
You can’t perform that action at this time.
0 commit comments