chore(pdfjs): embed sandbox file

This commit is contained in:
Elian Doran 2026-01-04 18:50:40 +02:00
parent e4d0a4554a
commit 757fc7a7fe
No known key found for this signature in database

View File

@ -34,8 +34,9 @@ async function main() {
build.writeJson("web/locale/locale.json", localeMappings);
// Copy pdfjs-dist files.
build.copy("/node_modules/pdfjs-dist/build/pdf.mjs", "build/pdf.mjs");
build.copy("/node_modules/pdfjs-dist/build/pdf.worker.mjs", "build/pdf.worker.mjs");
for (const file of [ "pdf.mjs", "pdf.worker.mjs", "pdf.sandbox.mjs" ]) {
build.copy(join("/node_modules/pdfjs-dist/build", file), join("build", file));
}
if (watchMode) {
watchForChanges();