Skip to content

Commit 896255e

Browse files
committed
Add the caniuse-lite package
Since the Autoprefixer plugin indirectly depends on this, it seems like a good idea to add this as a direct dependency in the PDF.js project to hopefully avoid having to manually update `caniuse-lite` in the future; see https://github.com/browserslist/browserslist#browsers-data-updating Also, slightly tweaks the Autoprefixer config for GENERIC-builds of the PDF.js library; note that this change doesn't affect the contents of the *built* `web/viewer.js` file.
1 parent 046ff07 commit 896255e

File tree

3 files changed

+21
-19
lines changed

3 files changed

+21
-19
lines changed

gulpfile.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ const AUTOPREFIXER_CONFIG = {
8181
"Chrome >= 73",
8282
"Firefox ESR",
8383
"Safari >= 12.1",
84-
"> 0.5%",
84+
"> 1%",
8585
"not IE > 0",
8686
"not dead",
8787
],

package-lock.json

+19-18
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"acorn": "^8.7.0",
1111
"autoprefixer": "^10.4.2",
1212
"babel-loader": "^8.2.3",
13+
"caniuse-lite": "^1.0.30001312",
1314
"canvas": "^2.9.0",
1415
"core-js": "^3.21.1",
1516
"cross-env": "^7.0.3",

0 commit comments

Comments
 (0)