We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6484a18 commit 46c1375Copy full SHA for 46c1375
example/webpack.config.js
@@ -44,6 +44,11 @@ module.exports = {
44
},
45
// We are importing this worker as a string by using asset/source otherwise it will default to loading via an HTTPS request later.
46
// 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.
47
+ {
48
+ // eslint-disable-next-line prefer-regex-literals
49
+ test: new RegExp('node_modules/pdfjs-dist/build/pdf.worker.min.mjs'),
50
+ type: 'asset/source',
51
+ },
52
{
53
// eslint-disable-next-line prefer-regex-literals
54
test: new RegExp('node_modules/pdfjs-dist/legacy/build/pdf.worker.min.mjs'),
0 commit comments