Skip to content

Commit 4f4d8a4

Browse files
committed
use pdf.worker.min.mjs
1 parent 7445c98 commit 4f4d8a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

example/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ module.exports = {
4646
// 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.
4747
{
4848
// eslint-disable-next-line prefer-regex-literals
49-
test: new RegExp('node_modules/pdfjs-dist/legacy/build/pdf.worker.js'),
49+
test: new RegExp('node_modules/pdfjs-dist/legacy/build/pdf.worker.min.mjs'),
5050
type: 'asset/source',
5151
},
5252
],

0 commit comments

Comments
 (0)