Skip to content

Commit

Permalink
fix: return if PDFJS has been resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
johannschopplich committed Nov 29, 2023
1 parent d582c6a commit 77c8c74
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ export async function resolvePDFJSImports(
// @ts-expect-error: Return value is unknown
resolvedModule = await resolvedModule.resolvePDFJS();
}

return;
} catch {
throw new Error(
"Resolving failed. Please check the provided configuration.",
Expand Down

0 comments on commit 77c8c74

Please # to comment.