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

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

View File

@ -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
}
}