File tree Expand file tree Collapse file tree 7 files changed +8
-8
lines changed Expand file tree Collapse file tree 7 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import PropTypes from 'prop-types';
6
6
import makeEventProps from 'make-event-props' ;
7
7
import makeCancellable from 'make-cancellable-promise' ;
8
8
import mergeClassNames from 'merge-class-names' ;
9
- import * as pdfjs from 'pdfjs-dist' ;
9
+ import * as pdfjs from 'pdfjs-dist/legacy/build/pdf ' ;
10
10
11
11
import DocumentContext from './DocumentContext' ;
12
12
Original file line number Diff line number Diff line change 1
1
import React , { PureComponent } from 'react' ;
2
2
import PropTypes from 'prop-types' ;
3
- import * as pdfjs from 'pdfjs-dist' ;
3
+ import * as pdfjs from 'pdfjs-dist/legacy/build/pdf ' ;
4
4
import makeCancellable from 'make-cancellable-promise' ;
5
5
6
6
import DocumentContext from '../DocumentContext' ;
Original file line number Diff line number Diff line change 1
1
import React , { PureComponent } from 'react' ;
2
2
import PropTypes from 'prop-types' ;
3
- import * as pdfjs from 'pdfjs-dist' ;
3
+ import * as pdfjs from 'pdfjs-dist/legacy/build/pdf ' ;
4
4
5
5
import PageContext from '../PageContext' ;
6
6
Original file line number Diff line number Diff line change 1
- import * as pdfjs from 'pdfjs-dist' ;
1
+ import * as pdfjs from 'pdfjs-dist/legacy/build/pdf ' ;
2
2
3
3
import Document from './Document' ;
4
4
import Outline from './Outline' ;
Original file line number Diff line number Diff line change 1
- import * as pdfjs from 'pdfjs-dist' ;
1
+ import * as pdfjs from 'pdfjs-dist/legacy/build/pdf ' ;
2
2
3
3
import Document from './Document' ;
4
4
import Outline from './Outline' ;
Original file line number Diff line number Diff line change 1
- import * as pdfjs from 'pdfjs-dist' ;
1
+ import * as pdfjs from 'pdfjs-dist/legacy/build/pdf ' ;
2
2
// eslint-disable-next-line
3
- import pdfjsWorker from 'file-loader!pdfjs-dist/build/pdf.worker' ;
3
+ import pdfjsWorker from 'file-loader!pdfjs-dist/legacy/ build/pdf.worker' ;
4
4
5
5
import Document from './Document' ;
6
6
import Outline from './Outline' ;
Original file line number Diff line number Diff line change 7
7
* See: https://github.com/parcel-bundler/parcel/issues/670
8
8
*/
9
9
10
- ( typeof window !== 'undefined' ? window : { } ) . pdfjsWorker = require ( 'pdfjs-dist/build/pdf.worker.js ' ) ;
10
+ ( typeof window !== 'undefined' ? window : { } ) . pdfjsWorker = require ( 'pdfjs-dist/legacy/ build/pdf.worker' ) ;
You can’t perform that action at this time.
0 commit comments