Skip to content
This repository was archived by the owner on Jul 9, 2021. It is now read-only.

Commit 6f1d890

Browse files
committed
[fixed] added a temporary hack/fix for react-hot-loader, while the stable version v3 is not out yet
1 parent 60a0dc8 commit 6f1d890

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@
102102
"null-loader": "^0.1.1",
103103
"postcss": "^5.2.12",
104104
"react": "^15.4.2",
105+
"react-dom": "^15.4.2",
105106
"react-hot-loader": "^1.3.1",
106107
"remarkable": "^1.7.1",
107108
"serve-static": "^1.11.2",

src/webpack.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,14 @@ export function getConfig(react: boolean): Object {
6565
cache,
6666
debug: true,
6767
node: {fs: 'empty'},
68-
module: {loaders}
68+
module: {loaders},
69+
70+
// temporary hack while `react-hot-loader` v3 is not out
71+
resolve: {
72+
alias: {
73+
'react/lib/ReactMount': 'react-dom/lib/ReactMount'
74+
}
75+
}
6976
};
7077
}
7178

0 commit comments

Comments
 (0)