pdf.js/external
Jonas Jenwald 6e31799948 [api-minor] Add the Babel targets-option to avoid transpiling code for unsupported browsers
Currently we simply use the Babel `preset-env` in the `legacy`-builds of the PDF.js library. This has the side-effect of transpiling the code for *very old* browsers/environments, including ones that we (since many years) no longer support which unnecessarily bloats the size of the `legacy`-builds.

For the CSS files we're only targeting *the supported browsers*, and it's thus possible to extend that to also apply to Babel.
One of the most significant changes, with this patch, is that we'll no longer polyfill `async`/`await` in the `legacy`-builds. However, this shouldn't be an issue given the browsers that we currently support in PDF.js; please refer to:
 - https://github.com/mozilla/pdf.js/wiki/Frequently-Asked-Questions#faq-support
 - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/async_function#browser_compatibility
2022-08-19 22:19:43 +02:00
..
bcmaps Removes external/cmaps; adds binary cmaps to the repo 2014-03-17 13:30:27 -05:00
builder Reduce unnecessary usage of Array.prototype.concat() 2022-06-19 13:40:52 +02:00
cmapscompress Use more for...of loops in the code-base 2022-07-17 16:18:54 +02:00
dist [api-minor] Add the Babel targets-option to avoid transpiling code for unsupported browsers 2022-08-19 22:19:43 +02:00
importL10n Enable the ESLint no-var rule in the external/ folder 2021-03-14 11:43:25 +01:00
quickjs Update quickjs to revision 2788d71e823b522b178db3b3660ce93689534e6d 2022-05-01 15:53:50 +02:00
standard_fonts Bundle the license-file for the Liberation fonts in the builds (PR 13517 follow-up) 2021-06-10 00:11:47 +02:00
systemjs Cache babel source map. 2021-04-09 10:34:54 -07:00
webL10n Use modern DOM methods a bit more (PR 15031 follow-up) 2022-06-13 10:47:37 +02:00
webpack Enable the ESLint no-var rule in the external/ folder 2021-03-14 11:43:25 +01:00
.eslintrc Enable the unicorn/prefer-at ESLint plugin rule (PR 15008 follow-up) 2022-06-09 21:21:19 +02:00
.gitignore Removes external/cmaps; adds binary cmaps to the repo 2014-03-17 13:30:27 -05:00