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
Is your feature request related to a problem? Please describe.
Instructions on setting pdfjs.GlobalWorkerOptions.workerSrc when using create-react-app (CRA) are rather sparse.
Describe the solution you'd like
I have managed to get around manually copying the files or loading from a CDN (which is not an option for every project) and would like to suggest adding further instructions to the README ;)
Additional information
I use the file-loader via webpack-loader-syntax which is an anti-pattern in CRA because it is not packer agnostic and might break in the future, BUT in the future loading web workers hopefully also works ootb rendering this obsolete...
Is your feature request related to a problem? Please describe.
Instructions on setting
pdfjs.GlobalWorkerOptions.workerSrc
when using create-react-app (CRA) are rather sparse.Describe the solution you'd like
I have managed to get around manually copying the files or loading from a CDN (which is not an option for every project) and would like to suggest adding further instructions to the README ;)
Additional information
I use the
file-loader
via webpack-loader-syntax which is an anti-pattern in CRA because it is not packer agnostic and might break in the future, BUT in the future loading web workers hopefully also works ootb rendering this obsolete...For typescript support also add this to
react-app-env.d.ts
The text was updated successfully, but these errors were encountered: