Skip to content

Commit

Permalink
Fix examples/webpack/README.md. The .mjs extension is necessary. Close
Browse files Browse the repository at this point in the history
  • Loading branch information
tamuratak committed Nov 23, 2023
1 parent 83f0029 commit 6e7381b
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 6e7381b

Please sign in to comment.