compatibility.js 519 B

123456789101112
  1. /* Copyright 2017 Mozilla Foundation
  2. *
  3. * Licensed under the Apache License, Version 2.0 (the "License");
  4. * you may not use this file except in compliance with the License.
  5. */
  6. // The upstream JBig2 decoder ships legacy polyfills through CommonJS require().
  7. // This project targets modern browsers through Vite, so the compatibility layer is kept
  8. // intentionally small to avoid pulling core-js into the lazy OFD chunk.
  9. if (!globalThis._pdfjsCompatibilityChecked) {
  10. globalThis._pdfjsCompatibilityChecked = true;
  11. }