@@ -6,7 +6,7 @@ use std::{
66use next_taskless:: { BUN_EXTERNALS , EDGE_NODE_EXTERNALS , NODE_EXTERNALS } ;
77use rspack_core:: {
88 ApplyContext , CompilerOptions , DependencyCategory , ExternalItem , ExternalItemFnCtx ,
9- ExternalItemFnResult , ExternalItemObject , ExternalItemValue , Plugin , PluginContext ,
9+ ExternalItemFnResult , ExternalItemObject , ExternalItemValue , Plugin ,
1010 ResolveOptionsWithDependencyType , ResolveResult ,
1111} ;
1212use rspack_error:: ToStringResultToRspackResultExt ;
@@ -140,7 +140,7 @@ impl Plugin for NextExternalsPlugin {
140140
141141 fn apply (
142142 & self ,
143- ctx : PluginContext < & mut ApplyContext > ,
143+ ctx : & mut ApplyContext < ' _ > ,
144144 options : & CompilerOptions ,
145145 ) -> rspack_error:: Result < ( ) > {
146146 let is_client = self . compiler_type == "client" ;
@@ -266,8 +266,7 @@ impl Plugin for NextExternalsPlugin {
266266 . collect :: < Vec < _ > > ( )
267267 } ;
268268
269- ExternalsPlugin :: new ( external_type, externals)
270- . apply ( PluginContext :: with_context ( ctx. context ) , options) ?;
269+ ExternalsPlugin :: new ( external_type, externals) . apply ( & mut ctx, options) ?;
271270
272271 Ok ( ( ) )
273272 }
0 commit comments