From 8856132f795efa2a71922241071037610e2148a2 Mon Sep 17 00:00:00 2001 From: William Durand Date: Fri, 17 Jan 2020 13:23:25 +0100 Subject: [PATCH] Fix the replacement regexp for 'config' (#9093) --- webpack-common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webpack-common.js b/webpack-common.js index 5e9cb67049..755cbe2228 100644 --- a/webpack-common.js +++ b/webpack-common.js @@ -143,7 +143,7 @@ export function getPlugins({ // This replaces the config with a new module that has sensitive, // server-only keys removed. new webpack.NormalModuleReplacementPlugin( - /config$/, + /^config$/, 'core/client/config.js', ), // This swaps the server side window object with a standard browser window.