File tree 3 files changed +3
-5
lines changed
turbopack-core/src/resolve
3 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -1694,7 +1694,7 @@ async fn handle_after_resolve_plugins(
1694
1694
request : Vc < Request > ,
1695
1695
options : Vc < ResolveOptions > ,
1696
1696
) -> Result < Option < Vc < ResolveResult > > > {
1697
- for plugin in & options. await ?. plugins {
1697
+ for plugin in & options. await ?. after_resolve_plugins {
1698
1698
let after_resolve_condition = plugin. after_resolve_condition ( ) . resolve ( ) . await ?;
1699
1699
if * after_resolve_condition. matches ( path) . await ? {
1700
1700
if let Some ( result) = * plugin
Original file line number Diff line number Diff line change @@ -597,7 +597,7 @@ pub struct ResolveOptions {
597
597
pub fallback_import_map : Option < ResolvedVc < ImportMap > > ,
598
598
pub resolved_map : Option < ResolvedVc < ResolvedMap > > ,
599
599
pub before_resolve_plugins : Vec < ResolvedVc < Box < dyn BeforeResolvePlugin > > > ,
600
- pub plugins : Vec < ResolvedVc < Box < dyn AfterResolvePlugin > > > ,
600
+ pub after_resolve_plugins : Vec < ResolvedVc < Box < dyn AfterResolvePlugin > > > ,
601
601
/// Support resolving *.js requests to *.ts files
602
602
pub enable_typescript_with_output_extension : bool ,
603
603
/// Warn instead of error for resolve errors
Original file line number Diff line number Diff line change @@ -141,8 +141,6 @@ async fn base_resolve_options(
141
141
}
142
142
let import_map = import_map. resolved_cell ( ) ;
143
143
144
- let plugins = opt. after_resolve_plugins . clone ( ) ;
145
-
146
144
let conditions = {
147
145
let mut conditions: ResolutionConditions = [
148
146
( "import" . into ( ) , ConditionValue :: Unknown ) ,
@@ -266,7 +264,7 @@ async fn base_resolve_options(
266
264
default_files : vec ! [ "index" . into( ) ] ,
267
265
import_map : Some ( import_map) ,
268
266
resolved_map : opt. resolved_map ,
269
- plugins ,
267
+ after_resolve_plugins : opt . after_resolve_plugins . clone ( ) ,
270
268
before_resolve_plugins : opt. before_resolve_plugins . clone ( ) ,
271
269
loose_errors : opt. loose_errors ,
272
270
..Default :: default ( )
You can’t perform that action at this time.
0 commit comments