From 8df7f0da57cff349e63bf4fe939a53b2de35ef1d Mon Sep 17 00:00:00 2001 From: Naoyuki Kanezawa Date: Sat, 7 Jan 2017 00:23:54 +0900 Subject: [PATCH] fix HMR (#680) --- client/next-dev.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/next-dev.js b/client/next-dev.js index 3d62249c86..8453ebabd9 100644 --- a/client/next-dev.js +++ b/client/next-dev.js @@ -1,4 +1,3 @@ -import 'react-hot-loader/patch' import patch from './patch-react' // apply patch first @@ -7,5 +6,7 @@ patch((err) => { next.renderError(err) }) +require('react-hot-loader/patch') + const next = require('./next') window.next = next -- GitLab