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.

No minified build for older browsers from 2.4.456

See original GitHub issue

There 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:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
timvandermeijcommented, May 11, 2020

Fixed by the PR above.

0reactions
stephanrauhcommented, May 5, 2020

@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.

Read more comments on GitHub >

github_iconTop 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 >

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