Skip to content

Commit

Permalink
Add extension to URL() in Webpack 5 specific entry
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekmaj committed Nov 9, 2022
1 parent c743cfe commit 69d0c3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/entry.webpack5.js
Expand Up @@ -8,6 +8,6 @@ import { displayWorkerWarning } from './shared/utils';

displayWorkerWarning();

pdfjs.GlobalWorkerOptions.workerSrc = new URL('pdfjs-dist/build/pdf.worker', import.meta.url);
pdfjs.GlobalWorkerOptions.workerSrc = new URL('pdfjs-dist/build/pdf.worker.js', import.meta.url);

export { pdfjs, Document, Outline, Page };

0 comments on commit 69d0c3e

Please sign in to comment.