Skip to content

Commit

Permalink
Fix webpack config to use pdf.worker.js instead of pdf.worker.mjs
Browse files Browse the repository at this point in the history
  • Loading branch information
rezkiy37 committed Jan 28, 2025
1 parent ee65302 commit 7445c98
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.mjs'),
test: new RegExp('node_modules/pdfjs-dist/legacy/build/pdf.worker.js'),
type: 'asset/source',
},
],
Expand Down

0 comments on commit 7445c98

Please sign in to comment.