Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
resolve: Fix broken enhanced-resolve calls
  • Loading branch information
neurolag committed Sep 18, 2022
commit 402340cfe7f09da58202214c7e477633f3194d7d
9 changes: 4 additions & 5 deletions src/resolver.ts
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
Expand Up @@ -1259,7 +1259,6 @@ function resolveModule(

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