We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 572e803 commit ffe0035Copy full SHA for ffe0035
index.js
@@ -1,6 +1,6 @@
1
'use strict'
2
3
-if (process.env.NODE_ENV === 'production') {
+if (!module.hot || process.env.NODE_ENV === 'production') {
4
module.exports = require('./dist/react-hot-loader.production.min.js');
5
} else {
6
module.exports = require('./dist/react-hot-loader.development.js');
0 commit comments