From 673639c54b5df26e3341fc9de085496de03be219 Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Sat, 17 Feb 2024 22:09:24 +0100 Subject: [PATCH] Disable source-map generation in the minified builds (PR 17686 follow-up) As part of the changes in PR 17686 we "accidentally" enabled source-maps for the *minified* builds, which seems unnecessary since those have never been included in the `pdfjs-dist` output. Locally this patch reduces the run-time of `gulp minified` by ~15 percent. --- gulpfile.mjs | 1 + 1 file changed, 1 insertion(+) diff --git a/gulpfile.mjs b/gulpfile.mjs index e2eb269ef..6d7033e40 100644 --- a/gulpfile.mjs +++ b/gulpfile.mjs @@ -208,6 +208,7 @@ function createWebpackConfig( !bundleDefines.MOZCENTRAL && !bundleDefines.CHROME && !bundleDefines.LIB && + !bundleDefines.MINIFIED && !bundleDefines.TESTING && !disableSourceMaps; const isModule = output.library?.type === "module";