@@ -129,12 +129,12 @@ impl EsmLibraryPlugin {
129129
130130 ctx
131131 . exported_symbols
132- . insert ( new_export. clone ( ) , local. clone ( ) ) ;
132+ . insert ( new_export. clone ( ) , local) ;
133133 already_exported_names. insert ( new_export. clone ( ) ) ;
134134 already_exported_names. get ( & new_export) . cloned ( )
135135 } else {
136136 let already_exported_names = ctx. exports . entry ( local. clone ( ) ) . or_default ( ) ;
137- ctx. exported_symbols . insert ( exported. clone ( ) , local. clone ( ) ) ;
137+ ctx. exported_symbols . insert ( exported. clone ( ) , local) ;
138138 already_exported_names. insert ( exported. clone ( ) ) ;
139139 already_exported_names. get ( & exported) . cloned ( )
140140 }
@@ -957,10 +957,10 @@ var {} = {{}};
957957 new_name
958958 } else {
959959 all_used_names. insert ( symbol. clone ( ) ) ;
960- symbol. clone ( )
960+ symbol
961961 } ;
962962
963- require_info. required_symbol = Some ( new_name. clone ( ) ) ;
963+ require_info. required_symbol = Some ( new_name) ;
964964 }
965965
966966 require_info
@@ -1048,7 +1048,7 @@ var {} = {{}};
10481048 let entry_chunk_link = link. get_mut_unwrap ( & entry_chunk) ;
10491049 entry_chunk_link. add_re_export (
10501050 current_chunk,
1051- exported. clone ( ) ,
1051+ exported,
10521052 "default" . to_string ( ) . into ( ) ,
10531053 ) ;
10541054 }
@@ -1608,7 +1608,7 @@ var {} = {{}};
16081608 . filter_map ( |( ref_string, binding_ref) | match binding_ref {
16091609 Ref :: Symbol ( symbol_ref) => Some ( ( ref_string, symbol_ref) ) ,
16101610 Ref :: Inline ( inlined_string) => {
1611- inline_refs. insert ( ref_string. clone ( ) , Ref :: Inline ( inlined_string) ) ;
1611+ inline_refs. insert ( ref_string, Ref :: Inline ( inlined_string) ) ;
16121612 None
16131613 }
16141614 } )
@@ -2167,7 +2167,7 @@ var {} = {{}};
21672167 mg_cache,
21682168 & ref_info. id ( ) ,
21692169 if let Some ( reexport_export) = reexport. export {
2170- [ reexport_export. clone ( ) , export_name[ 1 ..] . to_vec ( ) ] . concat ( )
2170+ [ reexport_export, export_name[ 1 ..] . to_vec ( ) ] . concat ( )
21712171 } else {
21722172 export_name[ 1 ..] . to_vec ( )
21732173 } ,
0 commit comments