You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I followed the recommendations given here to use pdf.js 2.6.347 with webpack.
It mention that:
...(configuring worker-loader is not necessary; just installing it is sufficient).
It's no longer the case with the last version of worker-loader (v3.0.7), and since the version v3.0.0 I believe, due to a breaking change in this package:
The filename option now default to [name].worker.js, which cause webpack to generate a pdf.worker.worker.js file instead of the expected pdf.worker.js.
A PR for this would be very welcome, most likely together with a small change to the README file to say that at least worker-loader version 3.0.0 or higher is required now; thanks!
I followed the recommendations given here to use pdf.js
2.6.347
with webpack.It mention that:
It's no longer the case with the last version of
worker-loader
(v3.0.7
), and since the version v3.0.0 I believe, due to a breaking change in this package:The
filename
option now default to [name].worker.js, which cause webpack to generate apdf.worker.worker.js
file instead of the expectedpdf.worker.js
.To make webpack generate the proper file, I had to update a line inside /external/dist/webpack.js as mention bellow:
(I added
&filename=[name].js
option, forworker-loader
not to add its new suffix)The text was updated successfully, but these errors were encountered: