-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
Document pdfjs-dist/webpack #10940
Comments
I would like to take a look at this, it's my first time trying to contribute to an open source project. |
Exactly. I think a solution for this would be to extend https://github.com/mozilla/pdf.js/blob/master/examples/webpack/README.md with information about |
Just to clarify, what I get from this is that if you are using webpack, you should import PDF.js this way:
instead of
I was half-considering not coming back to my job and changing my name before I stumbled on this! Almost lost a full day of work on this... |
Would be great to have documentation also on how to use built-in viewer with Webpack. |
The current webpack example makes no mention of this as an option or how to correctly use it with worker loader. Instead, I only found it by looking at this comment: #7612 (comment)
The text was updated successfully, but these errors were encountered: