From c447203485ddab0a7c6716db24d187fc03d25c33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Gra=CC=88=C3=9Fl?= Date: Fri, 14 Jun 2024 11:44:28 +0200 Subject: [PATCH] fix(config): Remove stubbing redux-logger in prod --- packages/config/src/bin/empty.ts | 2 -- packages/config/src/bin/webpack.plugins.ts | 7 ------- 2 files changed, 9 deletions(-) delete mode 100644 packages/config/src/bin/empty.ts diff --git a/packages/config/src/bin/empty.ts b/packages/config/src/bin/empty.ts deleted file mode 100644 index 77556a461..000000000 --- a/packages/config/src/bin/empty.ts +++ /dev/null @@ -1,2 +0,0 @@ -// Used as an empty module to save bundle size -module.exports = {}; diff --git a/packages/config/src/bin/webpack.plugins.ts b/packages/config/src/bin/webpack.plugins.ts index 208f5193e..176c8ef91 100644 --- a/packages/config/src/bin/webpack.plugins.ts +++ b/packages/config/src/bin/webpack.plugins.ts @@ -1,5 +1,3 @@ -const webpack = require('webpack'); -const { resolve } = require('path'); import { LogType, fecLogger, federatedModules, generatePFSharedAssetsList } from '@redhat-cloud-services/frontend-components-config-utilities'; import FECConfiguration from '../lib/fec.config'; @@ -33,10 +31,5 @@ const plugins = [ }), ]; -// Save 20kb of bundle size in prod -if (process.env.NODE_ENV === 'production') { - plugins.push(new webpack.NormalModuleReplacementPlugin(/redux-logger/, resolve(__dirname, './empty.js'))); -} - export default plugins; module.exports = plugins;