mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
Reduce the usage of require
statements in code-paths not protected by pre-processor and/or run-time checks
This replaces some additional `require`/`exports` usage with standard `import`/`export` statements instead. Hence another, small, part in the effort to reduce the reliance on SystemJS-specific functionality in the development viewer.
This commit is contained in:
parent
8b9492a5c4
commit
ec0ab91a2b
4 changed files with 17 additions and 12 deletions
|
@ -35,5 +35,6 @@ if (typeof PDFJSDev === "undefined" || PDFJSDev.test("GENERIC")) {
|
|||
}
|
||||
})();
|
||||
}
|
||||
const viewerCompatibilityParams = Object.freeze(compatibilityParams);
|
||||
|
||||
exports.viewerCompatibilityParams = Object.freeze(compatibilityParams);
|
||||
export { viewerCompatibilityParams };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue