@@ -1726,7 +1726,6 @@ impl ModuleOptionsBuilder {
17261726 } ) ,
17271727 import_dynamic : Some ( true ) ,
17281728 commonjs_magic_comments : Some ( false ) ,
1729- inline_const : Some ( false ) ,
17301729 jsx : Some ( false ) ,
17311730 ..Default :: default ( )
17321731 } ) ,
@@ -3209,6 +3208,8 @@ pub struct OptimizationOptionsBuilder {
32093208 inner_graph : Option < bool > ,
32103209 /// Whether to enable mangle exports.
32113210 mangle_exports : Option < MangleExportsOption > ,
3211+ /// Whether to enable inline exports.
3212+ inline_exports : Option < bool > ,
32123213 /// Whether to enable concatenate modules.
32133214 concatenate_modules : Option < bool > ,
32143215 /// Whether to enable real content hash.
@@ -3233,6 +3234,7 @@ impl From<Optimization> for OptimizationOptionsBuilder {
32333234 used_exports : Some ( value. used_exports ) ,
32343235 inner_graph : Some ( value. inner_graph ) ,
32353236 mangle_exports : Some ( value. mangle_exports ) ,
3237+ inline_exports : Some ( value. inline_exports ) ,
32363238 concatenate_modules : Some ( value. concatenate_modules ) ,
32373239 avoid_entry_iife : Some ( value. avoid_entry_iife ) ,
32383240 remove_empty_chunks : None ,
@@ -3264,6 +3266,7 @@ impl From<&mut OptimizationOptionsBuilder> for OptimizationOptionsBuilder {
32643266 used_exports : value. used_exports . take ( ) ,
32653267 inner_graph : value. inner_graph . take ( ) ,
32663268 mangle_exports : value. mangle_exports . take ( ) ,
3269+ inline_exports : value. inline_exports . take ( ) ,
32673270 concatenate_modules : value. concatenate_modules . take ( ) ,
32683271 real_content_hash : value. real_content_hash . take ( ) ,
32693272 avoid_entry_iife : value. avoid_entry_iife . take ( ) ,
@@ -3559,6 +3562,7 @@ impl OptimizationOptionsBuilder {
35593562 . push ( BuiltinPluginOptions :: SideEffectsFlagPlugin ) ;
35603563 }
35613564
3565+ let inline_exports = d ! ( self . inline_exports, production) ;
35623566 let mangle_exports = f ! ( self . mangle_exports. take( ) , || {
35633567 if production {
35643568 MangleExportsOption :: Deterministic
@@ -3662,6 +3666,7 @@ impl OptimizationOptionsBuilder {
36623666 used_exports,
36633667 inner_graph,
36643668 mangle_exports,
3669+ inline_exports,
36653670 concatenate_modules,
36663671 avoid_entry_iife,
36673672 real_content_hash,
@@ -3815,10 +3820,7 @@ impl ExperimentsBuilder {
38153820 parallel_code_splitting,
38163821 cache,
38173822 css : d ! ( self . css, false ) ,
3818- inline_const : false ,
3819- inline_enum : false ,
3820- type_reexports_presence : false ,
3821- lazy_barrel : false ,
3823+ lazy_barrel : true ,
38223824 defer_import : false ,
38233825 } )
38243826 }
0 commit comments