mirror of
https://github.com/vercel/next.js.git
synced 2026-09-20 02:25:18 +08:00
13 lines
207 B
JavaScript
13 lines
207 B
JavaScript
import patch from './patch-react'
|
|
|
|
// apply patch first
|
|
patch((err) => {
|
|
console.error(err)
|
|
next.renderError(err)
|
|
})
|
|
|
|
require('react-hot-loader/patch')
|
|
|
|
const next = require('./next')
|
|
window.next = next
|