Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit c4d2abc

Browse files
committedNov 25, 2016
Quiet react-hot-loader error triggered with React 15.4.0
1 parent 245ce48 commit c4d2abc

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', 'last 2 versions', '> 1%'] }),
2834
],

0 commit comments

Comments
 (0)
Failed to load comments.