File tree Expand file tree Collapse file tree 2 files changed +23
-1
lines changed
Expand file tree Collapse file tree 2 files changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -1285,6 +1285,7 @@ impl Issue for InvalidLoaderRuleRenameAsIssue {
12851285
12861286#[ turbo_tasks:: value( shared) ]
12871287struct InvalidLoaderRuleConditionIssue {
1288+ error_string : RcStr ,
12881289 condition : ConfigConditionItem ,
12891290 config_file_path : FileSystemPath ,
12901291}
@@ -1309,7 +1310,15 @@ impl Issue for InvalidLoaderRuleConditionIssue {
13091310 #[ turbo_tasks:: function]
13101311 async fn description ( & self ) -> Result < Vc < OptionStyledString > > {
13111312 Ok ( Vc :: cell ( Some (
1312- StyledString :: Text ( RcStr :: from ( format ! ( "{:#?}" , self . condition) ) ) . resolved_cell ( ) ,
1313+ StyledString :: Stack ( vec ! [
1314+ StyledString :: Line ( vec![
1315+ StyledString :: Text ( rcstr!( "Encountered the following error:" ) ) ,
1316+ StyledString :: Code ( self . error_string. clone( ) ) ,
1317+ ] ) ,
1318+ StyledString :: Text ( rcstr!( "While processing the condition:" ) ) ,
1319+ StyledString :: Code ( RcStr :: from( format!( "{:#?}" , self . condition) ) ) ,
1320+ ] )
1321+ . resolved_cell ( ) ,
13131322 ) ) )
13141323 }
13151324
Original file line number Diff line number Diff line change 1+ module . exports = {
2+ turbopack : {
3+ rules : {
4+ "*.svg" : {
5+ loaders : [ "@svgr/webpack" ] ,
6+ as : "*.js" ,
7+ condition : {
8+ path : / a b c / ,
9+ } ,
10+ } ,
11+ } ,
12+ } ,
13+ } ;
You can’t perform that action at this time.
0 commit comments