11 lines
353 B
JavaScript
11 lines
353 B
JavaScript
|
|
/**
|
||
|
|
* PDF.js worker entry file.
|
||
|
|
*
|
||
|
|
* This file is identical to Mozilla's pdf.worker.entry.js, with one exception being placed inside
|
||
|
|
* this bundle, not theirs.
|
||
|
|
*/
|
||
|
|
(typeof window !== 'undefined' ? window : {}).pdfjsWorker =
|
||
|
|
// @ts-expect-error - pdfjs-dist does not ship with types
|
||
|
|
await import('pdfjs-dist/build/pdf.worker.mjs');
|
||
|
|
export {};
|