From 24caf7b993bf9c1bea1ff3dc4248aa1a3671c0bb Mon Sep 17 00:00:00 2001 From: Hendrik Liebau Date: Fri, 3 Mar 2023 11:31:15 +0100 Subject: [PATCH] Use named module IDs to fix prod build Unfortunately, the hashed module IDs were sometime not the same between the client and server build. --- webpack.config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webpack.config.js b/webpack.config.js index a068a02..2c6ba08 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -50,7 +50,7 @@ const serverConfig = { }, optimization: dev ? undefined - : {concatenateModules: false, usedExports: false, moduleIds: `hashed`}, + : {concatenateModules: false, usedExports: false, moduleIds: `named`}, }; /** @@ -76,7 +76,7 @@ const clientConfig = { ssrManifestFilename: `../react-ssr-manifest.json`, }), ], - optimization: dev ? undefined : {moduleIds: `hashed`}, + optimization: dev ? undefined : {moduleIds: `named`}, }; export default [serverConfig, clientConfig];