mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
15 lines
301 B
JavaScript
15 lines
301 B
JavaScript
|
|
module.exports = function (content) {
|
|
this.cacheable()
|
|
|
|
return content + `
|
|
if (module.hot) {
|
|
module.hot.accept()
|
|
if ('idle' !== module.hot.status()) {
|
|
const Component = module.exports.default || module.exports
|
|
next.router.notify({ Component })
|
|
}
|
|
}
|
|
`
|
|
}
|