question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Babel loader reports the newer version of pdfjs-dist (pdfjs-dist@2.0.310) to be incredibly large, making all builds and dev runtime very, very slow (adding ~5-10min per build/rebuild). Issue didn’t seem to be present on pdfjs-dist@2.0.303, what were the major benefits of upgrading and would it be possible to revert?

[BABEL] Note: The code generator has deoptimised the styling of 
"/Users/andreas.virkus/code/sweden-loan-application/node_modules/pdfjs-dist/build/pdf.js"
as it exceeds the max of "500KB".

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
FranckFreiburgercommented, Feb 7, 2018
0reactions
FranckFreiburgercommented, Feb 7, 2018

(Should 2 be converted to a separate issue and this one closed?)

Yes, thanks.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Large webpack bundle · Issue #9087 · mozilla/pdf.js - GitHub
When I import PDFJS through webpack the bundlesize is significatly larger than the minified pdf.min.js file provided in pdfjs-dist. pdf.min.js: 299KB
Read more >
pdfjs-dist - npm
Repository. github.com/mozilla/pdfjs-dist ; Homepage. mozilla.github.io/pdf.js/ ; Version. 3.1.81 ; License. Apache-2.0 ; Unpacked Size. 34.5 MB ...
Read more >
Examples
Each PDF page has its own viewport which defines the size in pixels(72DPI) and initial rotation. By default the viewport is scaled to...
Read more >
pdfjs-dist v3.1.81 Bundlephobia
Size of pdfjs-dist v3.1.81 is 262.6 kB (minified), and 73.3 kB when compressed using GZIP. Bundlephobia helps you find the performance ...
Read more >
PDF.js scale PDF on fixed width - javascript - Stack Overflow
I updated the example from the Pdf.js github http://jsbin.com/pdfjs-prevnext-v2/edit#html,live to scale properly to a fixed canvas width.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found