@tuttarealstep/vue-pdf.js
Version:
A Vue component for displaying PDF files using the standard `pdf.js` viewer. This package provides a simple and powerful integration to embed PDF viewers in Vue applications.
15 lines (14 loc) • 580 B
TypeScript
/**
* pdf.js v5 relies on a few recent ECMAScript features that are missing in
* older browsers (e.g. Firefox < 121, Chrome < 128). The official pdf.js
* "legacy" builds inject these polyfills with core-js at build time, but
* since we bundle pdf.js from source we have to provide them ourselves.
*
* `AbortSignal.any` is already polyfilled by pdf.js itself, see
* `pdf.js/src/shared/util.js`.
*
* This module is imported by both the library entry point and the worker
* entry point: polyfills loaded on the main thread don't reach the worker
* context.
*/
export {};