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:
Jonas Jenwald 2023-01-22 17:01:06 +01:00
parent cb5a28ceca
commit cf0369d622
6 changed files with 237 additions and 2462 deletions

View file

@ -2206,6 +2206,7 @@ function packageJson() {
canvas: "^2.11.0",
},
dependencies: {
"path2d-polyfill": "^2.0.1",
"web-streams-polyfill": "^3.2.1",
},
browser: {