fix webpack config problem caused by breaking changes of worker-loader
This commit is contained in:
parent
b52b36f6a5
commit
dee0c29f6f
2
external/dist/webpack.js
vendored
2
external/dist/webpack.js
vendored
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user