Skip to content

Commit

Permalink
Merge pull request #12244 from yangjiang3973/fix-webpack
Browse files Browse the repository at this point in the history
fix webpack config problem caused by breaking changes of worker-loader
  • Loading branch information
timvandermeij authored Aug 21, 2020
2 parents 909c5af + dee0c29 commit 1ff578c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion external/dist/webpack.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"use strict";

var pdfjs = require("./build/pdf.js");
var PdfjsWorker = require("worker-loader!./build/pdf.worker.js");
var PdfjsWorker = require("worker-loader?esModule=false!./build/pdf.worker.js");

if (typeof window !== "undefined" && "Worker" in window) {
pdfjs.GlobalWorkerOptions.workerPort = new PdfjsWorker();
Expand Down

0 comments on commit 1ff578c

Please sign in to comment.