File tree Expand file tree Collapse file tree 1 file changed +14
-10
lines changed
turbopack/crates/turbopack-core/src/module_graph Expand file tree Collapse file tree 1 file changed +14
-10
lines changed Original file line number Diff line number Diff line change @@ -108,16 +108,20 @@ impl ChunkGroupInfo {
108108 if let Some ( idx) = self . chunk_groups . get_index_of ( & chunk_group) {
109109 Ok ( Vc :: cell ( idx) )
110110 } else {
111- bail ! (
112- "Couldn't find chunk group index for {} in {}" ,
113- chunk_group. debug_str( self ) . await ?,
114- self . chunk_groups
115- . iter( )
116- . map( |c| c. debug_str( self ) )
117- . try_join( )
118- . await ?
119- . join( ", " )
120- ) ;
111+ if cfg ! ( debug_assertions) {
112+ bail ! (
113+ "Couldn't find chunk group index for {} in {}" ,
114+ chunk_group. debug_str( self ) . await ?,
115+ self . chunk_groups
116+ . iter( )
117+ . map( |c| c. debug_str( self ) )
118+ . try_join( )
119+ . await ?
120+ . join( ", " )
121+ ) ;
122+ } else {
123+ bail ! ( "Couldn't find chunk group index" )
124+ }
121125 }
122126 }
123127}
You can’t perform that action at this time.
0 commit comments