From 23ec4a1368bc45641159e86daf67af590f754e2d Mon Sep 17 00:00:00 2001 From: Leo McArdle Date: Mon, 9 Sep 2024 11:40:39 +0000 Subject: [PATCH] fix(bundle-size): partially revert 4a5cf81b8958bb3b5f80b8d20ae0bc1ae1d426bb although "deterministic" isn't when changing loaders, it *is* when changing import order - which is more important. we'll probably avoid the prior problem with changing loader config changing chunk names (but not their contents) if/when we move to named chunks --- client/config/webpack.config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/config/webpack.config.js b/client/config/webpack.config.js index 52a17f0098ba..0c6e8a9460a4 100644 --- a/client/config/webpack.config.js +++ b/client/config/webpack.config.js @@ -162,8 +162,8 @@ function config(webpackEnv) { level: "none", }, optimization: { - chunkIds: isEnvProduction ? "natural" : "named", - moduleIds: isEnvProduction ? "natural" : "named", + chunkIds: isEnvProduction ? "deterministic" : "named", + moduleIds: isEnvProduction ? "deterministic" : "named", minimize: isEnvProduction, minimizer: [ // This is only used in production mode