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:
parent
4ac8ee8b6d
commit
673639c54b
@ -208,6 +208,7 @@ function createWebpackConfig(
|
||||
!bundleDefines.MOZCENTRAL &&
|
||||
!bundleDefines.CHROME &&
|
||||
!bundleDefines.LIB &&
|
||||
!bundleDefines.MINIFIED &&
|
||||
!bundleDefines.TESTING &&
|
||||
!disableSourceMaps;
|
||||
const isModule = output.library?.type === "module";
|
||||
|
Loading…
Reference in New Issue
Block a user