From dee0c29f6fe6ce6b0b3605527353a1089d674af0 Mon Sep 17 00:00:00 2001 From: IanJiang0817 Date: Wed, 19 Aug 2020 17:02:16 +0800 Subject: [PATCH] fix webpack config problem caused by breaking changes of worker-loader --- external/dist/webpack.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/external/dist/webpack.js b/external/dist/webpack.js index ca9cc836861c4..13cbb1141cb15 100644 --- a/external/dist/webpack.js +++ b/external/dist/webpack.js @@ -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();