Skip to content

Commit

Permalink
fix: disable RHL when HMR is not activated (#863)
Browse files Browse the repository at this point in the history
  • Loading branch information
theKashey authored and gregberge committed Feb 18, 2018
1 parent 572e803 commit ffe0035
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict'

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

0 comments on commit ffe0035

Please sign in to comment.