-
-
Notifications
You must be signed in to change notification settings - Fork 899
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Webpack 5 specific entry, update README, update Webpack 2 sample
- Loading branch information
Showing
3 changed files
with
28 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import * as pdfjs from 'pdfjs-dist/legacy/build/pdf'; | ||
|
||
import Document from './Document'; | ||
import Outline from './Outline'; | ||
import Page from './Page'; | ||
|
||
import { displayWorkerWarning } from './shared/utils'; | ||
|
||
displayWorkerWarning(); | ||
|
||
pdfjs.GlobalWorkerOptions.workerSrc = new URL('pdfjs-dist/legacy/build/pdf.worker', import.meta.url); | ||
|
||
export { | ||
pdfjs, | ||
Document, | ||
Outline, | ||
Page, | ||
}; |