Skip to content

Commit

Permalink
Merge pull request #1253 from xD3CODER/master
Browse files Browse the repository at this point in the history
fix: No HMR missing error in SSR, fixes #1252
  • Loading branch information
theKashey committed May 17, 2019
2 parents c5bcd40 + 956e52b commit c87487d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.js
Expand Up @@ -2,12 +2,12 @@

if (process.env.NODE_ENV === 'production') {
module.exports = require('./dist/react-hot-loader.production.min.js');
} else if (!module.hot) {
console.error('React-Hot-Loader: Hot Module Replacement is not enabled');
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');
} else if (!module.hot) {
console.error('React-Hot-Loader: Hot Module Replacement is not enabled');
module.exports = require('./dist/react-hot-loader.production.min.js');
} else {
var evalAllowed = false;
try {
Expand Down

0 comments on commit c87487d

Please sign in to comment.