diff --git a/packages/metro-resolver/src/resolve.js b/packages/metro-resolver/src/resolve.js index 2201836d8c..8023a9cc80 100644 --- a/packages/metro-resolver/src/resolve.js +++ b/packages/metro-resolver/src/resolve.js @@ -96,7 +96,7 @@ function resolve( } const modulePaths = []; - for (let modulePath of yieldPotentialPaths(context, realModuleName)) { + for (let modulePath of genModulePaths(context, realModuleName)) { modulePath = context.redirectModulePath(modulePath); const result = resolveFileOrDir(context, modulePath, platform); @@ -110,7 +110,7 @@ function resolve( } /** Generate the potential module paths */ -function* yieldPotentialPaths( +function* genModulePaths( context: ResolutionContext, toModuleName: string, ): Iterable {