From 16470c605f24f866f688a3f3dc69affaafd657cf Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sat, 4 Sep 2021 15:27:31 -0500 Subject: [PATCH] Webpack: remove unneeded NormalModuleReplacementPlugin It was adding 1 minute to build time, and the upstream issue is already fixed: https://github.com/remix-run/react-router/pull/5589 --- webpack/shared.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/webpack/shared.js b/webpack/shared.js index 817e91ebd..23f781d6a 100644 --- a/webpack/shared.js +++ b/webpack/shared.js @@ -68,13 +68,6 @@ module.exports = { plugins: [ new webpack.EnvironmentPlugin(JSON.parse(JSON.stringify(env))), - new webpack.NormalModuleReplacementPlugin( - /^history\//, (resource) => { - // temporary fix for https://github.com/ReactTraining/react-router/issues/5576 - // to reduce bundle size - resource.request = resource.request.replace(/^history/, 'history/es'); - }, - ), new MiniCssExtractPlugin({ filename: 'packs/css/[name]-[contenthash:8].css', chunkFilename: 'packs/css/[name]-[contenthash:8].chunk.css',