diff --git a/packages/scripts/config/webpack.config.js b/packages/scripts/config/webpack.config.js index 1175eb016eaf7..b3b7e578459d9 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