@@ -168,6 +168,11 @@ impl BrowserChunkingContextBuilder {
168168        self 
169169    } 
170170
171+     pub  fn  debug_ids ( mut  self ,  debug_ids :  bool )  -> Self  { 
172+         self . chunking_context . debug_ids  = debug_ids; 
173+         self 
174+     } 
175+ 
171176    pub  fn  chunking_config < T > ( mut  self ,  ty :  ResolvedVc < T > ,  chunking_config :  ChunkingConfig )  -> Self 
172177    where 
173178        T :  Upcast < Box < dyn  ChunkType > > , 
@@ -229,6 +234,8 @@ pub struct BrowserChunkingContext {
229234enable_module_merging :  bool , 
230235    /// Enable dynamic chunk content loading. 
231236enable_dynamic_chunk_content_loading :  bool , 
237+     /// Enable debug IDs for chunks and source maps. 
238+ debug_ids :  bool , 
232239    /// The environment chunks will be evaluated in. 
233240environment :  ResolvedVc < Environment > , 
234241    /// The kind of runtime to include in the output. 
@@ -279,6 +286,7 @@ impl BrowserChunkingContext {
279286                enable_tracing :  false , 
280287                enable_module_merging :  false , 
281288                enable_dynamic_chunk_content_loading :  false , 
289+                 debug_ids :  false , 
282290                environment, 
283291                runtime_type, 
284292                minify_type :  MinifyType :: NoMinify , 
@@ -780,4 +788,9 @@ impl ChunkingContext for BrowserChunkingContext {
780788            Ok ( ModuleExportUsage :: all ( ) ) 
781789        } 
782790    } 
791+ 
792+     #[ turbo_tasks:: function]  
793+     async  fn  debug_ids_enabled ( self :  Vc < Self > )  -> Result < Vc < bool > >  { 
794+         Ok ( Vc :: cell ( self . await ?. debug_ids ) ) 
795+     } 
783796} 
0 commit comments