We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9eb9d3f + 13ca668 commit 0d574f6Copy full SHA for 0d574f6
external/dist/webpack.js renamed to external/dist/webpack.mjs
@@ -12,17 +12,15 @@
12
* See the License for the specific language governing permissions and
13
* limitations under the License.
14
*/
15
-/* eslint-disable import/no-commonjs */
+/* eslint-disable import/no-unresolved */
16
17
-"use strict";
18
-
19
-const pdfjs = require("./build/pdf.mjs");
+import { GlobalWorkerOptions } from "./build/pdf.mjs";
20
21
if (typeof window !== "undefined" && "Worker" in window) {
22
- pdfjs.GlobalWorkerOptions.workerPort = new Worker(
+ GlobalWorkerOptions.workerPort = new Worker(
23
new URL("./build/pdf.worker.mjs", import.meta.url),
24
{ type: "module" }
25
);
26
}
27
28
-module.exports = pdfjs;
+export * from "./build/pdf.mjs";
0 commit comments