From dcbe4ec1a17a1364c02bea6ae085b28e687d20c4 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Tue, 24 Dec 2024 23:00:40 +0000 Subject: [PATCH] fix(nuxt): initialise `import.meta.hot.data` --- packages/nuxt/src/pages/module.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/nuxt/src/pages/module.ts b/packages/nuxt/src/pages/module.ts index ba8c0a807d..b08b5c948c 100644 --- a/packages/nuxt/src/pages/module.ts +++ b/packages/nuxt/src/pages/module.ts @@ -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 } }