Skip to content

Commit ffe0035

Browse files
theKasheygregberge
authored andcommitted
fix: disable RHL when HMR is not activated (#863)
1 parent 572e803 commit ffe0035

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict'
22

3-
if (process.env.NODE_ENV === 'production') {
3+
if (!module.hot || process.env.NODE_ENV === 'production') {
44
module.exports = require('./dist/react-hot-loader.production.min.js');
55
} else {
66
module.exports = require('./dist/react-hot-loader.development.js');

0 commit comments

Comments
 (0)