mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
[api-minor] Produce non-translated/non-polyfilled builds by default
This commit is contained in:
parent
cd3f2d49e6
commit
c97c778f8f
9 changed files with 177 additions and 99 deletions
|
@ -14,9 +14,11 @@
|
|||
*/
|
||||
/* eslint no-var: error */
|
||||
|
||||
// Skip compatibility checks for modern builds and if we already ran the module.
|
||||
// Skip compatibility checks for modern builds (unless we're running the
|
||||
// unit-tests in Node.js/Travis) and if we already ran the module.
|
||||
if (
|
||||
(typeof PDFJSDev === "undefined" || !PDFJSDev.test("SKIP_BABEL")) &&
|
||||
(typeof PDFJSDev === "undefined" ||
|
||||
PDFJSDev.test("!SKIP_BABEL || (LIB && TESTING)")) &&
|
||||
(typeof globalThis === "undefined" || !globalThis._pdfjsCompatibilityChecked)
|
||||
) {
|
||||
// Provides support for globalThis in legacy browsers.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue