fix(nuxt): initialise import.meta.hot.data

This commit is contained in:
Daniel Roe 2024-12-24 23:00:40 +00:00
parent fb1f24fd01
commit b1cf5781dd
No known key found for this signature in database
GPG Key ID: CBC814C393D93268

View File

@ -634,6 +634,7 @@ if (import.meta.hot) {
export function handleHotUpdate(_router) {
if (import.meta.hot) {
import.meta.hot.data ||= {}
import.meta.hot.data.router = _router
}
}