Skip to content

Commit

Permalink
fix(config): Remove stubbing redux-logger in prod
Browse files Browse the repository at this point in the history
  • Loading branch information
bastilian committed Jun 14, 2024
1 parent aacedbd commit c447203
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
2 changes: 0 additions & 2 deletions packages/config/src/bin/empty.ts

This file was deleted.

7 changes: 0 additions & 7 deletions packages/config/src/bin/webpack.plugins.ts
Original file line number Diff line number Diff line change
@@ -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';

Expand Down Expand Up @@ -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;

0 comments on commit c447203

Please sign in to comment.