mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 14:48:08 +02:00
Merge pull request #17320 from tamuratak/fix_webpack_readme
Fix examples/webpack/README.md.
This commit is contained in:
commit
4b1de1537f
1 changed files with 2 additions and 2 deletions
|
@ -27,7 +27,7 @@ otherwise the build is not guaranteed to work correctly.
|
|||
## Worker loading
|
||||
|
||||
If you are getting the `Setting up fake worker` warning, make sure you are
|
||||
importing `pdfjs-dist/webpack` which is the zero-configuration method for
|
||||
importing `pdfjs-dist/webpack.mjs` which is the zero-configuration method for
|
||||
Webpack users. Installing `worker-loader` is no longer necessary.
|
||||
|
||||
import * as pdfjsLib from 'pdfjs-dist/webpack';
|
||||
import * as pdfjsLib from 'pdfjs-dist/webpack.mjs';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue