From ffe003532d50d7079efcac6d18254f770691f41d Mon Sep 17 00:00:00 2001 From: Anton Date: Mon, 19 Feb 2018 08:32:54 +1100 Subject: [PATCH] fix: disable RHL when HMR is not activated (#863) --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 54e663160..338429daf 100644 --- a/index.js +++ b/index.js @@ -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');