Skip to content

Commit

Permalink
fix: avoid dynamic imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Simone Gosetto committed Sep 2, 2024
1 parent 8989900 commit e897e6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pdf.js/v4.5.136/build/pdf.js
Original file line number Diff line number Diff line change
Expand Up @@ -17865,7 +17865,7 @@ class PDFWorker {
if (this.#mainThreadWorkerMessageHandler) {
return this.#mainThreadWorkerMessageHandler;
}
const worker = await import( /*webpackIgnore: true*/this.workerSrc);
const worker = require( /*webpackIgnore: true*/this.workerSrc);
return worker.WorkerMessageHandler;
};
return shadow(this, "_setupFakeWorkerGlobal", loader());
Expand Down

0 comments on commit e897e6b

Please sign in to comment.