Skip to content

Commit

Permalink
upgrade to pdfjs-dist 4.*
Browse files Browse the repository at this point in the history
  • Loading branch information
cracker0dks committed May 7, 2024
1 parent 41f62d2 commit e0d03da
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 14 deletions.
3 changes: 1 addition & 2 deletions config/webpack.base.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ const __dirname = path.dirname(__filename);

const config = {
entry: {
main: ["./src/js/index.js"],
"pdf.worker": "pdfjs-dist/build/pdf.worker.entry",
main: ["./src/js/index.js"]
},
output: {
path: path.join(__dirname, "..", "dist"),
Expand Down
20 changes: 10 additions & 10 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"jquery": "^3.6.0",
"jquery-ui": "^1.13.2",
"keymage": "^1.1.3",
"pdfjs-dist": "^3.11.174",
"pdfjs-dist": "^4.2.67",
"prettier": "^2.5.1",
"pretty-quick": "^2.0.1",
"style-loader": "^1.1.4",
Expand Down
2 changes: 1 addition & 1 deletion src/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { getSubDir } from "./utils.js";
import ConfigService from "./services/ConfigService.js";
import { v4 as uuidv4 } from "uuid";

import pdfjsLib from "pdfjs-dist";
import * as pdfjsLib from 'pdfjs-dist/webpack.mjs';

const urlParams = new URLSearchParams(window.location.search);
let whiteboardId = urlParams.get("whiteboardid");
Expand Down

0 comments on commit e0d03da

Please sign in to comment.