From 122176ecbe5f9a3ba5c32b2845db257624dc2185 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Maro=C5=A1i?= Date: Mon, 28 Nov 2022 11:30:26 +0100 Subject: [PATCH] Update webpack config to share router module. --- config/dev.webpack.config.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/dev.webpack.config.js b/config/dev.webpack.config.js index 625de02e..285fb6ff 100644 --- a/config/dev.webpack.config.js +++ b/config/dev.webpack.config.js @@ -34,6 +34,8 @@ plugins.push( exposes: { './RootApp': resolve(__dirname, '../src/AppEntry.js'), }, + shared: [{ 'react-router-dom': { singleton: true } }], + exclude: ['react-router-dom'], } ) );