Skip to content

Commit

Permalink
resolve: Fix broken enhanced-resolve calls
Browse files Browse the repository at this point in the history
  • Loading branch information
manuth committed Sep 18, 2022
1 parent 4c1a8b4 commit 8dda7d3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
9 changes: 4 additions & 5 deletions src/resolver.ts
Expand Up @@ -8,8 +8,7 @@ export function makeResolver(
return create.sync(options.resolve);
}

export type ResolveSync = (
context: string | undefined,
path: string,
moduleName: string
) => string | false;
export type ResolveSync = {
(context: any, path: string, moduleName: string): string | false;
(path: string, moduleName: string): string | false;
};
1 change: 0 additions & 1 deletion src/servicesHost.ts
Expand Up @@ -1259,7 +1259,6 @@ function resolveModule(

try {
const originalFileName = resolveSync(
undefined,
path.normalize(path.dirname(containingFile)),
moduleName
);
Expand Down

0 comments on commit 8dda7d3

Please sign in to comment.