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'], } ) );