@@ -2494,14 +2494,14 @@ impl ModuleGraph {
24942494 self . has_node_specifier = has_node_specifier;
24952495 }
24962496
2497- /// Re-resolves npm specifier dependencies in the graph to non-npm
2498- /// specifiers using the provided resolver, removes npm module stubs,
2499- /// and builds the newly resolved modules into the graph.
2497+ /// Re-resolves npm specifier dependencies in the graph to the file
2498+ /// system removing npm module stubs and builds the newly resolved
2499+ /// modules into the graph.
25002500 ///
25012501 /// `npm_root_dir` is used as the referrer when re-resolving npm root
25022502 /// specifiers. `options.resolver` should map npm specifiers to file
25032503 /// specifiers (e.g. in node_modules).
2504- pub async fn resolve_npm_specifiers < ' a > (
2504+ pub async fn build_npm_packages < ' a > (
25052505 & mut self ,
25062506 npm_root_dir : & ModuleSpecifier ,
25072507 resolution_kind : ResolutionKind ,
@@ -8592,7 +8592,7 @@ mod tests {
85928592 }
85938593
85948594 #[ tokio:: test]
8595- async fn resolve_npm_specifiers ( ) {
8595+ async fn build_npm_packages ( ) {
85968596 #[ derive( Debug ) ]
85978597 struct TestResolver ;
85988598 impl Resolver for TestResolver {
@@ -8721,7 +8721,7 @@ mod tests {
87218721 assert ! ( graph. get( & npm_specifier) . unwrap( ) . npm( ) . is_some( ) ) ;
87228722
87238723 graph
8724- . resolve_npm_specifiers (
8724+ . build_npm_packages (
87258725 & npm_root_dir,
87268726 ResolutionKind :: Execution ,
87278727 & TestLoader ,
0 commit comments