No minified build for older browsers from 2.4.456
See original GitHub issueThere does not seem to be a way to build a minified version for older browsers.
I used to use gulp minified
as stated in the FAQ
Since 2.4.456 produces a non-polyfilled build by default (SKIP_BABEL=true in gulpfile.js) and since we need to support IE11, this does not work anymore.
Whilst there is a gulp task generic-es5 to complement the generic task, the same is missing for the minified task. Is there another easy way to build a minified version for older browsers without modifying gulpfile.js? If not, would you accept a pull request, if I added it?
The FAQ should be updated, too, to mention that the minified task builds a modern browser version.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Supporting old browsers without hurting everyone - sgom.es
Users of old browsers will still get slow, large builds — but they actually need to.
Read more >Looking for help to make npm/pdfjs-dist work with Webpack ...
This issue seems to arise due to esModule option introduced in worker-loader@3.0.0 . The fix for this was merged in (pre-release) ...
Read more >Minifiers | Dev Resources - Michael Currin
Browser tools. Easy minification tools for those without build tool experience or for quick results. It lets you paste code and generate minified...
Read more >Chapter 20 Managing JavaScript
Another method often used is to build the project as an R package, ... Ensuring that the JavaScript code can run on most...
Read more >pdfjs-dist - npm
Generic build of Mozilla's PDF.js library. ... For usage with older browsers or environments, without support for modern features such as ...
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 FreeTop 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
Top GitHub Comments
Fixed by the PR above.
@kleins05 In the meantime, you can use the ES5 file of ngx-extended-pdf-viewer. You can get them as part of the project on npm (npm install ngx-extended-pdf-viewer) or on unpkgc.com: https://unpkg.com/browse/ngx-extended-pdf-viewer@3.2.6/assets/
BTW: I always create the ES5 file by modifying the Gulp file. It’s just modifying the SKIP_BABEL line.