Skip to content
This repository was archived by the owner on Jan 19, 2023. It is now read-only.

Commit 372e043

Browse files
committed
Quiet react-hot-loader error triggered with React 15.4.0
1 parent 96eceb6 commit 372e043

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

webpack.config.dev.babel.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ module.exports = {
2323
]),
2424
new webpack.NoErrorsPlugin(),
2525
],
26+
resolve: {
27+
alias: {
28+
// For react-hot-loader 1.x issue (https://github.com/gaearon/react-hot-loader/issues/417)
29+
'react/lib/ReactMount': 'react-dom/lib/ReactMount',
30+
},
31+
},
2632
postcss: [
2733
autoprefixer({ browsers: ['IE >= 9', '> 1%'] }),
2834
],

0 commit comments

Comments
 (0)