From a1b0c8dbec518c499f4c571ba17a128b09216c5d Mon Sep 17 00:00:00 2001 From: nick-funk Date: Thu, 21 Sep 2023 15:14:34 -0600 Subject: [PATCH] disable parallel terser on production builds --- client/src/core/build/createWebpackConfig.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/core/build/createWebpackConfig.ts b/client/src/core/build/createWebpackConfig.ts index be40904670..a9a8ceb16b 100644 --- a/client/src/core/build/createWebpackConfig.ts +++ b/client/src/core/build/createWebpackConfig.ts @@ -219,8 +219,8 @@ export default function createWebpackConfig( safari10: true, }, cache: enableBuildCache, - parallel: 4, - sourceMap: isProduction, + parallel: isProduction ? false : true, + sourceMap: !disableSourcemaps, }), ], },