Fix pdf opening (#1732)
authorKrishan <33421343+kfiven@users.noreply.github.com>
Sun, 12 May 2024 06:14:34 +0000 (16:14 +1000)
committerGitHub <noreply@github.com>
Sun, 12 May 2024 06:14:34 +0000 (16:14 +1000)
vite.config.js

index f77abfc575b4ae3ff3b91c6b76c38a48e32568b8..97f40500729a6ed4cf6da5febcb270a3a8ed2643 100644 (file)
@@ -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',