From: Krishan <33421343+kfiven@users.noreply.github.com> Date: Sun, 12 May 2024 06:14:34 +0000 (+1000) Subject: Fix pdf opening (#1732) X-Git-Tag: v4.0.0~44 X-Git-Url: https://git.wafflesoft.org/?a=commitdiff_plain;h=cd5d8e1c20532109a4d5a4738e4d2dfde1e288d7;p=cinny.git Fix pdf opening (#1732) --- diff --git a/vite.config.js b/vite.config.js index f77abfc..97f4050 100644 --- a/vite.config.js +++ b/vite.config.js @@ -15,8 +15,9 @@ const copyFiles = { dest: '', }, { - src: 'node_modules/pdfjs-dist/build/pdf.worker.min.js', + src: 'node_modules/pdfjs-dist/build/pdf.worker.min.mjs', dest: '', + rename: 'pdf.worker.min.js', }, { src: 'netlify.toml',