Skip to content

Commit

Permalink
Remove Parcel 1 example
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekmaj committed Jul 12, 2023
1 parent be89ef8 commit c7389c5
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,18 +127,6 @@ pdfjs.GlobalWorkerOptions.workerSrc = new URL(
<details>
<summary>See more examples</summary>

##### Parcel 1

For Parcel 1, you will have use the following code:

```js
import { pdfjs } from 'react-pdf';

pdfjs.GlobalWorkerOptions.workerPort = new Worker(
'node_modules/pdfjs-dist/build/pdf.worker.entry.js',
);
```

##### Parcel 2

For Parcel 2, you need to use a slightly different code:
Expand Down

0 comments on commit c7389c5

Please sign in to comment.