Skip to content

Commit 6b6a225

Browse files
committed
ApplyContext
1 parent 87fbd17 commit 6b6a225

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

rspack/crates/binding/src/next_externals_plugin.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use std::{
66
use next_taskless::{BUN_EXTERNALS, EDGE_NODE_EXTERNALS, NODE_EXTERNALS};
77
use rspack_core::{
88
ApplyContext, CompilerOptions, DependencyCategory, ExternalItem, ExternalItemFnCtx,
9-
ExternalItemFnResult, ExternalItemObject, ExternalItemValue, Plugin, PluginContext,
9+
ExternalItemFnResult, ExternalItemObject, ExternalItemValue, Plugin,
1010
ResolveOptionsWithDependencyType, ResolveResult,
1111
};
1212
use 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

Comments
 (0)