From 654bfb8f8c5bbe29f2360ad8ccd10da94c45d442 Mon Sep 17 00:00:00 2001 From: Mykhailo Kravchenko Date: Fri, 24 Jan 2025 18:12:26 +0100 Subject: [PATCH] update webpack configuration to use minified pdf.worker file --- config/webpack/webpack.common.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/webpack/webpack.common.ts b/config/webpack/webpack.common.ts index 1992a27c40c3..d50fa927fa95 100644 --- a/config/webpack/webpack.common.ts +++ b/config/webpack/webpack.common.ts @@ -179,7 +179,7 @@ const getCommonConfiguration = ({file = '.env', platform = 'web'}: Environment): // We are importing this worker as a string by using asset/source otherwise it will default to loading via an HTTPS request later. // This causes issues if we have gone offline before the pdfjs web worker is set up as we won't be able to load it from the server. { - test: new RegExp('node_modules/pdfjs-dist/legacy/build/pdf.worker.mjs'), + test: new RegExp('node_modules/pdfjs-dist/legacy/build/pdf.worker.min.mjs'), type: 'asset/source', },