Merge pull request #13460 from nikolas/patch-1

Update webpack import instructions
This commit is contained in:
Tim van der Meij 2021-05-29 15:43:34 +02:00 committed by GitHub
commit d725ff36f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,6 +33,6 @@ Webpack users. You will need to install
dependency in your project in order to use `pdfjs-dist/webpack` (configuring
`worker-loader` is not necessary; just installing it is sufficient).
import pdfjsLib from 'pdfjs-dist/webpack';
import * as pdfjsLib from 'pdfjs-dist/webpack';
For a full working example refer to [this repository](https://github.com/yurydelendik/pdfjs-react).