Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the example #44

Merged
merged 7 commits into from
Jan 30, 2025
Prev Previous commit
use pdf.worker.min.mjs
rezkiy37 committed Jan 30, 2025
commit 4f4d8a4a6d1cac81dd62bf236a0eac2d863d1511
2 changes: 1 addition & 1 deletion example/webpack.config.js
Original file line number Diff line number Diff line change
@@ -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',
},
],