From a3effd878b25da50f0575f10dd094efae0b03ec7 Mon Sep 17 00:00:00 2001 From: enes Date: Tue, 3 Sep 2024 16:46:54 +0200 Subject: [PATCH] fix(pdf): use minified version of pdf --- src/utils/pdf.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/pdf.ts b/src/utils/pdf.ts index 7803d91..763d582 100644 --- a/src/utils/pdf.ts +++ b/src/utils/pdf.ts @@ -3,7 +3,7 @@ import { PDFDocument } from 'pdf-lib' import { Mark } from '../types/mark.ts' import * as PDFJS from 'pdfjs-dist' -import PDFJSWorker from 'pdfjs-dist/build/pdf.worker.mjs?worker' +import PDFJSWorker from 'pdfjs-dist/build/pdf.worker.min.mjs?worker' if (!PDFJS.GlobalWorkerOptions.workerPort) { // Use workerPort and allow worker to be shared between all getDocument calls const worker = new PDFJSWorker()