import 'react-hot-loader/patch'
import patch from './patch-react'

// apply patch first
patch((err) => {
  console.error(err)
  next.renderError(err)
})

const next = require('./next')
window.next = next

@@ -1,36 +1,4 @@
-import 'react-hot-loader/patch'%0A
 impo
@@ -115,16 +115,51 @@
 rr)%0A%7D)%0A%0A
+require('react-hot-loader/patch')%0A%0A
 const ne

fix HMR (#680)