Skip to content

Commit

Permalink
fix: disable RHL when NODE_ENV == test, fixes #1252
Browse files Browse the repository at this point in the history
  • Loading branch information
theKashey committed May 23, 2019
1 parent 7e153c4 commit 6f56d87
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.js
Expand Up @@ -2,6 +2,8 @@

if (process.env.NODE_ENV === 'production') {
module.exports = require('./dist/react-hot-loader.production.min.js');
} else if (process.env.NODE_ENV === 'test') {
module.exports = require('./dist/react-hot-loader.production.min.js');
} else if (typeof window === 'undefined') {
// this is just server environment
module.exports = require('./dist/react-hot-loader.production.min.js');
Expand Down

0 comments on commit 6f56d87

Please sign in to comment.