diff --git a/packages/config-utils/src/federated-modules.ts b/packages/config-utils/src/federated-modules.ts index 636cf4769..d9978807e 100644 --- a/packages/config-utils/src/federated-modules.ts +++ b/packages/config-utils/src/federated-modules.ts @@ -14,7 +14,6 @@ const createIncludes = (eager = false): { [module: string]: WebpackSharedConfig '@redhat-cloud-services/chrome': { singleton: true }, axios: {}, lodash: {}, - 'redux-promise-middleware': {}, react: { singleton: true, eager }, 'react-dom': { singleton: true, eager }, }); 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;