fix HMR (#680)
This commit is contained in:
parent
0551dc90a1
commit
8df7f0da57
1 changed files with 2 additions and 1 deletions
|
@ -1,4 +1,3 @@
|
||||||
import 'react-hot-loader/patch'
|
|
||||||
import patch from './patch-react'
|
import patch from './patch-react'
|
||||||
|
|
||||||
// apply patch first
|
// apply patch first
|
||||||
|
@ -7,5 +6,7 @@ patch((err) => {
|
||||||
next.renderError(err)
|
next.renderError(err)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
require('react-hot-loader/patch')
|
||||||
|
|
||||||
const next = require('./next')
|
const next = require('./next')
|
||||||
window.next = next
|
window.next = next
|
||||||
|
|
Loading…
Reference in a new issue