Skip to content

Commit

Permalink
Merge pull request #17320 from tamuratak/fix_webpack_readme
Browse files Browse the repository at this point in the history
Fix examples/webpack/README.md.
  • Loading branch information
timvandermeij authored Nov 25, 2023
2 parents 3d9f68c + 6e7381b commit 4b1de15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/webpack/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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';

0 comments on commit 4b1de15

Please sign in to comment.