@@ -2686,6 +2686,7 @@ pub struct ExperimentsBuilder {
26862686 output_module : Option < bool > ,
26872687 future_defaults : Option < bool > ,
26882688 css : Option < bool > ,
2689+ parallel_code_splitting : Option < bool > ,
26892690 async_web_assembly : Option < bool > ,
26902691 // TODO: lazy compilation
26912692}
@@ -2701,6 +2702,7 @@ impl From<&mut ExperimentsBuilder> for ExperimentsBuilder {
27012702 output_module : value. output_module . take ( ) ,
27022703 future_defaults : value. future_defaults . take ( ) ,
27032704 css : value. css . take ( ) ,
2705+ parallel_code_splitting : value. parallel_code_splitting . take ( ) ,
27042706 async_web_assembly : value. async_web_assembly . take ( ) ,
27052707 }
27062708 }
@@ -2742,6 +2744,11 @@ impl ExperimentsBuilder {
27422744 self
27432745 }
27442746
2747+ pub fn parallel_code_splitting ( & mut self , parallel_code_splitting : bool ) -> & mut Self {
2748+ self . parallel_code_splitting = Some ( parallel_code_splitting) ;
2749+ self
2750+ }
2751+
27452752 pub fn build (
27462753 & mut self ,
27472754 _builder_context : & mut BuilderContext ,
@@ -2772,11 +2779,14 @@ impl ExperimentsBuilder {
27722779 w ! ( self . async_web_assembly, * future_defaults) ;
27732780 w ! ( self . output_module, false ) ;
27742781
2782+ let parallel_code_splitting = d ! ( self . parallel_code_splitting, false ) ;
2783+
27752784 Experiments {
27762785 layers,
27772786 incremental,
27782787 top_level_await,
27792788 rspack_future,
2789+ parallel_code_splitting,
27802790 cache,
27812791 }
27822792 }
0 commit comments