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.
This commit is contained in:
Jonas Jenwald 2024-02-17 22:09:24 +01:00
parent 4ac8ee8b6d
commit 673639c54b

View File

@ -208,6 +208,7 @@ function createWebpackConfig(
!bundleDefines.MOZCENTRAL &&
!bundleDefines.CHROME &&
!bundleDefines.LIB &&
!bundleDefines.MINIFIED &&
!bundleDefines.TESTING &&
!disableSourceMaps;
const isModule = output.library?.type === "module";