Skip to content

Commit

Permalink
Add the caniuse-lite package
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Snuffleupagus authored and pull[bot] committed Jul 1, 2023
1 parent b97d6d0 commit 644c5f0
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 19 deletions.
2 changes: 1 addition & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ const AUTOPREFIXER_CONFIG = {
"Chrome >= 73",
"Firefox ESR",
"Safari >= 12.1",
"> 0.5%",
"> 1%",
"not IE > 0",
"not dead",
],
Expand Down
37 changes: 19 additions & 18 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"acorn": "^8.7.0",
"autoprefixer": "^10.4.2",
"babel-loader": "^8.2.3",
"caniuse-lite": "^1.0.30001312",
"canvas": "^2.9.0",
"core-js": "^3.21.1",
"cross-env": "^7.0.3",
Expand Down

0 comments on commit 644c5f0

Please sign in to comment.