mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-10 02:05:37 +02:00
Polyfill Path2D
in Node.js environments
Until just recently the only existing `Path2D` polyfill didn't have support for Node.js and/or the `node-canvas` package. Given that this was just fixed, in the latest version, we can now finally remove our inline-checks at the relevant call-sites; please also see https://github.com/nilzona/path2d-polyfill#usage-with-node-canvas
This commit is contained in:
parent
cb5a28ceca
commit
cf0369d622
6 changed files with 237 additions and 2462 deletions
|
@ -2206,6 +2206,7 @@ function packageJson() {
|
|||
canvas: "^2.11.0",
|
||||
},
|
||||
dependencies: {
|
||||
"path2d-polyfill": "^2.0.1",
|
||||
"web-streams-polyfill": "^3.2.1",
|
||||
},
|
||||
browser: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue