Skip to content

Commit

Permalink
fix: do not use node resolver for relative files.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason3S committed Nov 17, 2020
1 parent d248686 commit 0df8562
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion packages/cspell-lib/src/util/resolveFile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ export function resolveFile(filename: string, relativeTo: string): ResolveFileRe
{ filename: path.resolve(filename), fn: tryResolveExists },
{ filename: filename, fn: methodResolveFrom },
{ filename: filename.replace(testNodeModules, ''), fn: methodResolveFrom },
{ filename: './' + (path.sep === '/' ? filename : filename.split(path.sep).join('/')), fn: methodResolveFrom },
];

for (const step of steps) {
Expand Down

0 comments on commit 0df8562

Please sign in to comment.