@@ -20,15 +20,15 @@ pub struct ModuleGraphModule {
2020 pub module_identifier : ModuleIdentifier ,
2121 // TODO remove this since its included in module
2222 pub module_type : ModuleType ,
23- pub dependencies : Vec < DependencyId > ,
24- pub ( crate ) pre_order_index : Option < usize > ,
25- pub post_order_index : Option < usize > ,
23+ pub dependencies : Box < Vec < DependencyId > > ,
24+ pub ( crate ) pre_order_index : Option < u32 > ,
25+ pub post_order_index : Option < u32 > ,
2626 pub module_syntax : ModuleSyntax ,
2727 pub factory_meta : Option < FactoryMeta > ,
2828 pub build_info : Option < BuildInfo > ,
2929 pub build_meta : Option < BuildMeta > ,
30- pub exports : ExportsInfo ,
31- pub profile : Option < ModuleProfile > ,
30+ pub exports : Box < ExportsInfo > ,
31+ pub profile : Option < Box < ModuleProfile > > ,
3232}
3333
3434impl ModuleGraphModule {
@@ -48,7 +48,7 @@ impl ModuleGraphModule {
4848 factory_meta : None ,
4949 build_info : None ,
5050 build_meta : None ,
51- exports : ExportsInfo :: new ( ) ,
51+ exports : Box :: new ( ExportsInfo :: new ( ) ) ,
5252 profile : None ,
5353 }
5454 }
@@ -175,11 +175,11 @@ impl ModuleGraphModule {
175175 }
176176
177177 pub fn set_profile ( & mut self , profile : ModuleProfile ) {
178- self . profile = Some ( profile) ;
178+ self . profile = Some ( Box :: new ( profile) ) ;
179179 }
180180
181181 pub fn get_profile ( & self ) -> Option < & ModuleProfile > {
182- self . profile . as_ref ( )
182+ self . profile . as_deref ( )
183183 }
184184
185185 pub fn set_issuer_if_unset ( & mut self , issuer : Option < ModuleIdentifier > ) {
0 commit comments