File tree Expand file tree Collapse file tree
crates/rspack/src/builder Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2699,23 +2699,23 @@ impl OutputOptionsBuilder {
26992699
27002700 let enabled_chunk_loading_types = f ! ( self . enabled_chunk_loading_types. take( ) , || {
27012701 let mut enabled_chunk_loading_types = vec![ ] ;
2702- if let ChunkLoading :: Enable ( ty) = chunk_loading {
2703- enabled_chunk_loading_types. push( ty) ;
2702+ if let ChunkLoading :: Enable ( ty) = & chunk_loading {
2703+ enabled_chunk_loading_types. push( ty. clone ( ) ) ;
27042704 }
2705- if let ChunkLoading :: Enable ( ty) = worker_chunk_loading {
2706- enabled_chunk_loading_types. push( ty) ;
2705+ if let ChunkLoading :: Enable ( ty) = & worker_chunk_loading {
2706+ enabled_chunk_loading_types. push( ty. clone ( ) ) ;
27072707 }
27082708 for ( _, desc) in entry. iter( ) {
27092709 if let Some ( ChunkLoading :: Enable ( ty) ) = & desc. chunk_loading {
2710- enabled_chunk_loading_types. push( * ty ) ;
2710+ enabled_chunk_loading_types. push( ty . clone ( ) ) ;
27112711 }
27122712 }
27132713 enabled_chunk_loading_types
27142714 } ) ;
27152715 for ty in enabled_chunk_loading_types. iter ( ) {
27162716 builder_context
27172717 . plugins
2718- . push ( BuiltinPluginOptions :: EnableChunkLoadingPlugin ( * ty ) ) ;
2718+ . push ( BuiltinPluginOptions :: EnableChunkLoadingPlugin ( ty . clone ( ) ) ) ;
27192719 }
27202720
27212721 let enabled_wasm_loading_types = f ! ( self . enabled_wasm_loading_types. take( ) , || {
You can’t perform that action at this time.
0 commit comments