@@ -36,6 +36,9 @@ struct CustomRoutes {
36
36
rewrites : Vc < Rewrites > ,
37
37
}
38
38
39
+ #[ turbo_tasks:: value( transparent) ]
40
+ pub struct ModularizeImports ( IndexMap < String , ModularizeImportPackageConfig > ) ;
41
+
39
42
#[ turbo_tasks:: value( serialization = "custom" , eq = "manual" ) ]
40
43
#[ derive( Clone , Debug , Default , PartialEq , Serialize , Deserialize ) ]
41
44
#[ serde( rename_all = "camelCase" ) ]
@@ -481,7 +484,8 @@ pub enum ReactCompilerOptionsOrBoolean {
481
484
#[ turbo_tasks:: value( transparent) ]
482
485
pub struct OptionalReactCompilerOptions ( Option < Vc < ReactCompilerOptions > > ) ;
483
486
484
- #[ derive( Clone , Debug , Default , PartialEq , Serialize , Deserialize , TraceRawVcs ) ]
487
+ #[ turbo_tasks:: value( eq = "manual" ) ]
488
+ #[ derive( Clone , Debug , Default , PartialEq ) ]
485
489
#[ serde( rename_all = "camelCase" ) ]
486
490
pub struct ExperimentalConfig {
487
491
pub allowed_revalidate_header_keys : Option < Vec < RcStr > > ,
@@ -723,7 +727,8 @@ impl StyledComponentsTransformOptionsOrBoolean {
723
727
}
724
728
}
725
729
726
- #[ derive( Clone , Debug , PartialEq , Serialize , Deserialize , TraceRawVcs ) ]
730
+ #[ turbo_tasks:: value( eq = "manual" ) ]
731
+ #[ derive( Clone , Debug , PartialEq , Default ) ]
727
732
#[ serde( rename_all = "camelCase" ) ]
728
733
pub struct CompilerConfig {
729
734
pub react_remove_properties : Option < ReactRemoveProperties > ,
@@ -801,6 +806,11 @@ impl NextConfig {
801
806
) )
802
807
}
803
808
809
+ #[ turbo_tasks:: function]
810
+ pub fn compiler ( & self ) -> Vc < CompilerConfig > {
811
+ self . compiler . clone ( ) . unwrap_or_default ( ) . cell ( )
812
+ }
813
+
804
814
#[ turbo_tasks:: function]
805
815
pub async fn env ( & self ) -> Result < Vc < EnvMap > > {
806
816
// The value expected for env is Record<String, String>, but config itself
@@ -999,6 +1009,16 @@ impl NextConfig {
999
1009
Ok ( options. cell ( ) )
1000
1010
}
1001
1011
1012
+ #[ turbo_tasks:: function]
1013
+ pub fn modularize_imports ( & self ) -> Vc < ModularizeImports > {
1014
+ Vc :: cell ( self . modularize_imports . clone ( ) . unwrap_or_default ( ) )
1015
+ }
1016
+
1017
+ #[ turbo_tasks:: function]
1018
+ pub fn experimental ( & self ) -> Vc < ExperimentalConfig > {
1019
+ self . experimental . clone ( ) . cell ( )
1020
+ }
1021
+
1002
1022
#[ turbo_tasks:: function]
1003
1023
pub async fn react_compiler ( & self ) -> Result < Vc < OptionalReactCompilerOptions > > {
1004
1024
let options = & self . experimental . react_compiler ;
0 commit comments