fix webpack config problem caused by breaking changes of worker-loader

This commit is contained in:
IanJiang0817 2020-08-19 17:02:16 +08:00
parent b52b36f6a5
commit dee0c29f6f

View File

@ -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();