From c7389c5b09c6f1fdece8612ab98a906e7af5b035 Mon Sep 17 00:00:00 2001 From: Wojciech Maj Date: Wed, 12 Jul 2023 08:56:36 +0200 Subject: [PATCH] Remove Parcel 1 example --- README.md | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/README.md b/README.md index eea55599b..92b53bf05 100644 --- a/README.md +++ b/README.md @@ -127,18 +127,6 @@ pdfjs.GlobalWorkerOptions.workerSrc = new URL(
See more examples -##### 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: