diff --git a/pdf.js b/pdf.js index 5abf583..59eb82b 100644 --- a/pdf.js +++ b/pdf.js @@ -1,4 +1,4 @@ -const pdfjsPath = path => new URL(`vendor/pdfjs/${path}`, import.meta.url).toString() +const pdfjsPath = (path: string) => new URL(`./vendor/pdfjs/${path}`, import.meta.url).toString() import './vendor/pdfjs/pdf.mjs' const pdfjsLib = globalThis.pdfjsLib