Update webpack config to share router module.
This commit is contained in:
parent
9c22d50786
commit
122176ecbe
1 changed files with 2 additions and 0 deletions
|
|
@ -34,6 +34,8 @@ plugins.push(
|
|||
exposes: {
|
||||
'./RootApp': resolve(__dirname, '../src/AppEntry.js'),
|
||||
},
|
||||
shared: [{ 'react-router-dom': { singleton: true } }],
|
||||
exclude: ['react-router-dom'],
|
||||
}
|
||||
)
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue