mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-19 01:45:53 +00:00
fix(nuxt): initialise import.meta.hot.data
This commit is contained in:
parent
0f8740636d
commit
dcbe4ec1a1
@ -644,6 +644,7 @@ if (import.meta.hot) {
|
|||||||
|
|
||||||
export function handleHotUpdate(_router) {
|
export function handleHotUpdate(_router) {
|
||||||
if (import.meta.hot) {
|
if (import.meta.hot) {
|
||||||
|
import.meta.hot.data ||= {}
|
||||||
import.meta.hot.data.router = _router
|
import.meta.hot.data.router = _router
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user