pdfjs-dist-npm-5.1.91.patch 1022 B

12345678910111213141516171819202122
  1. diff --git a/build/pdf.worker.mjs b/build/pdf.worker.mjs
  2. index 6c5c6f1..bb6b7d1 100644
  3. --- a/build/pdf.worker.mjs
  4. +++ b/build/pdf.worker.mjs
  5. @@ -1830,7 +1830,7 @@ async function __wbg_init(module_or_path) {
  6. }
  7. }
  8. if (typeof module_or_path === 'undefined') {
  9. - module_or_path = new URL('qcms_bg.wasm', import.meta.url);
  10. + module_or_path = new URL(/* webpackIgnore: true */ 'qcms_bg.wasm', import.meta.url);
  11. }
  12. const imports = __wbg_get_imports();
  13. if (typeof module_or_path === 'string' || typeof Request === 'function' && module_or_path instanceof Request || typeof URL === 'function' && module_or_path instanceof URL) {
  14. @@ -5358,7 +5358,7 @@ var OpenJPEG = (() => {
  15. if (Module["locateFile"]) {
  16. return locateFile("openjpeg.wasm");
  17. }
  18. - return new URL("openjpeg.wasm", import.meta.url).href;
  19. + return new URL(/* webpackIgnore: true */ "openjpeg.wasm", import.meta.url).href;
  20. }
  21. function getBinarySync(file) {
  22. if (file == wasmBinaryFile && wasmBinary) {