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 62b49da
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
2 changes: 0 additions & 2 deletions packages/config/src/bin/empty.ts

This file was deleted.

5 changes: 0 additions & 5 deletions packages/config/src/bin/webpack.plugins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,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 62b49da

Please sign in to comment.