Move canvas to optionalDependencies, which enables npm to continue installing pdfjs-dist
even if the installation of canvas fails. Close #15652
This commit is contained in:
parent
6193537cd3
commit
0bb478cb23
@ -2168,8 +2168,10 @@ function packageJson() {
|
||||
homepage: DIST_HOMEPAGE,
|
||||
bugs: DIST_BUGS_URL,
|
||||
license: DIST_LICENSE,
|
||||
dependencies: {
|
||||
optionalDependencies: {
|
||||
canvas: "^2.10.1",
|
||||
},
|
||||
dependencies: {
|
||||
"web-streams-polyfill": "^3.2.1",
|
||||
},
|
||||
browser: {
|
||||
|
Loading…
Reference in New Issue
Block a user