mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
fix HMR (#680)
This commit is contained in:
parent
0551dc90a1
commit
8df7f0da57
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue