Skip to content

Commit

Permalink
Merge pull request #17055 from Snuffleupagus/output-modules
Browse files Browse the repository at this point in the history
[api-major] Output JavaScript modules in the builds (issue 10317)
  • Loading branch information
timvandermeij committed Oct 7, 2023
2 parents 89d8c63 + 927e50f commit bab4c7f
Show file tree
Hide file tree
Showing 24 changed files with 231 additions and 308 deletions.
5 changes: 3 additions & 2 deletions external/dist/webpack.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@

"use strict";

const pdfjs = require("./build/pdf.js");
const pdfjs = require("./build/pdf.mjs");

if (typeof window !== "undefined" && "Worker" in window) {
pdfjs.GlobalWorkerOptions.workerPort = new Worker(
new URL("./build/pdf.worker.js", import.meta.url)
new URL("./build/pdf.worker.mjs", import.meta.url),
{ type: "module" }
);
}

Expand Down
Loading

0 comments on commit bab4c7f

Please sign in to comment.