Skip to content

Commit

Permalink
reduce diff
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Jan 11, 2024
1 parent fba2594 commit d31c7c2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/resolve.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ export async function lookupNodeModuleSubpath(
): Promise<string | undefined> {
path = normalize(fileURLToPath(path));
const { name, subpath } = parseNodeModulePath(path);

if (!name || !subpath) {
return subpath;
}
Expand Down

0 comments on commit d31c7c2

Please sign in to comment.