Skip to content

Commit

Permalink
use pdf.worker.min.mjs
Browse files Browse the repository at this point in the history
  • Loading branch information
rezkiy37 committed Jan 30, 2025
1 parent 7445c98 commit 4f4d8a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ module.exports = {
// This causes issues if we have gone offline before the pdfjs web worker is set up as we won't be able to load it from the server.
{
// eslint-disable-next-line prefer-regex-literals
test: new RegExp('node_modules/pdfjs-dist/legacy/build/pdf.worker.js'),
test: new RegExp('node_modules/pdfjs-dist/legacy/build/pdf.worker.min.mjs'),
type: 'asset/source',
},
],
Expand Down

0 comments on commit 4f4d8a4

Please sign in to comment.