-
-
Notifications
You must be signed in to change notification settings - Fork 908
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Patch pdfjs-dist to allow unit tests to run
- Loading branch information
Showing
3 changed files
with
33 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
diff --git a/build/pdf.mjs b/build/pdf.mjs | ||
index 003035596c3797888692cafd43f9466f96607d55..e69bc909492626f188ccff66b24a8d586fd96a30 100644 | ||
--- a/build/pdf.mjs | ||
+++ b/build/pdf.mjs | ||
@@ -5303,8 +5303,9 @@ if (isNodeJS) { | ||
const fs = await import( /*webpackIgnore: true*/"fs"), | ||
http = await import( /*webpackIgnore: true*/"http"), | ||
https = await import( /*webpackIgnore: true*/"https"), | ||
- url = await import( /*webpackIgnore: true*/"url"); | ||
- let canvas, path2d; | ||
+ url = await import( /*webpackIgnore: true*/"url"), | ||
+ canvas = await import( /*webpackIgnore: true*/"canvas"); | ||
+ let path2d; | ||
return new Map(Object.entries({ | ||
fs, | ||
http, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,7 +23,8 @@ | |
"prettier": "^3.2.0" | ||
}, | ||
"resolutions": { | ||
"eslint-plugin-import": "npm:eslint-plugin-i@^2.28.0" | ||
"eslint-plugin-import": "npm:eslint-plugin-i@^2.28.0", | ||
"pdfjs-dist": "patch:pdfjs-dist@npm:4.3.136#.yarn/patches/pdfjs-dist-npm-4.3.136-35a0e70ced.patch" | ||
}, | ||
"packageManager": "[email protected]" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters