Skip to content

Commit fc4800f

Browse files
authored
Fix webpack config
In #201, the switch to `react-router-dom` was made but the webpack config was not updated. Therefore, the current UMD bundles include `react-router-dom` and depend on `react-router`.
1 parent c206ac1 commit fc4800f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

webpack.config.babel.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ export default {
3232
},
3333
},
3434
{
35-
'react-router': {
36-
root: 'ReactRouter',
37-
commonjs2: 'react-router',
38-
commonjs: 'react-router',
39-
amd: 'react-router',
35+
'react-router-dom': {
36+
root: 'ReactRouterDOM',
37+
commonjs2: 'react-router-dom',
38+
commonjs: 'react-router-dom',
39+
amd: 'react-router-dom',
4040
},
4141
},
4242
],

0 commit comments

Comments
 (0)