Skip to content

Commit

Permalink
add function return type
Browse files Browse the repository at this point in the history
  • Loading branch information
dnalborczyk committed Nov 21, 2021
1 parent 8d98341 commit 4d03478
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/resolveId.ts
Expand Up @@ -45,13 +45,13 @@ export async function resolveId(
);
}

function addJsExtensionIfNecessary(file: string, preserveSymlinks: boolean) {
let found = findFile(file, preserveSymlinks);
if (found) return found;
found = findFile(file + '.mjs', preserveSymlinks);
if (found) return found;
found = findFile(file + '.js', preserveSymlinks);
return found;
function addJsExtensionIfNecessary(file: string, preserveSymlinks: boolean): string | undefined {
}

function findFile(file: string, preserveSymlinks: boolean): string | undefined {
Expand Down

0 comments on commit 4d03478

Please sign in to comment.