mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-18 17:35:57 +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) {
|
||||
if (import.meta.hot) {
|
||||
import.meta.hot.data ||= {}
|
||||
import.meta.hot.data.router = _router
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user