You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Added
The bundled PDF.js (pdf.mjs and pdf.worker.mjs) now ships with core-js
polyfills for five newer JavaScript APIs the PDF.js 6 build relies on — Map.prototype.getOrInsertComputed, Promise.try, Promise.withResolvers, Uint8Array.prototype.toHex, and URL.parse. Without them the viewer threw on
startup in browsers that predate those APIs; it now runs on those older engines.
The polyfills are injected into the two bundles at build time with esbuild, so
consumers pull in nothing new at runtime — core-js stays a build-only
dependency. Thanks to @delagen for the contribution. (#379)