Skip to content

Commit

Permalink
Update for vite build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
sthapa committed Nov 18, 2024
1 parent 0d4dae1 commit a774451
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion frontend/javascript/components/docupload/pdf-preview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
</template>

<script>
import PDFJSWorkerUrl from 'pdfjs-dist/build/pdf.worker.min.js?url'
import * as pdfjs from 'pdfjs-dist/build/pdf';
pdfjs.GlobalWorkerOptions.workerSrc = new URL('pdfjs-dist/build/pdf.worker', import.meta.url);
const range = (len) => [...Array(len).keys()]
Expand Down

0 comments on commit a774451

Please sign in to comment.