Pdfjs-dist size
See original GitHub issueBabel 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:
- Created 6 years ago
- Comments:8 (8 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

BTW, check https://github.com/babel/babel-loader#babel-loader-is-slow to speed-up babel
Yes, thanks.