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',