Update webpack config to share router module.

This commit is contained in:
Martin Maroši 2022-11-28 11:30:26 +01:00 committed by Lucas Garfield
parent 9c22d50786
commit 122176ecbe

View file

@ -34,6 +34,8 @@ plugins.push(
exposes: {
'./RootApp': resolve(__dirname, '../src/AppEntry.js'),
},
shared: [{ 'react-router-dom': { singleton: true } }],
exclude: ['react-router-dom'],
}
)
);