From 70ae293829c388557797167cfe145d8e1c35c92b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Greg=20Zi=C3=B3=C5=82kowski?= Date: Thu, 27 Apr 2023 14:20:53 +0200 Subject: [PATCH] Update packages/scripts/config/webpack.config.js --- packages/scripts/config/webpack.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/scripts/config/webpack.config.js b/packages/scripts/config/webpack.config.js index 1175eb016eaf71..b3b7e578459d9c 100644 --- a/packages/scripts/config/webpack.config.js +++ b/packages/scripts/config/webpack.config.js @@ -227,7 +227,7 @@ const config = { plugins: [ new DefinePlugin( { // Inject the `SCRIPT_DEBUG` global, used for development features flagging. - SCRIPT_DEBUG: mode === 'development', + SCRIPT_DEBUG: ! isProduction, } ), // During rebuilds, all webpack assets that are not used anymore will be // removed automatically. There is an exception added in watch mode for