From d2a95c542f2ed6684f04aad7458ea4e125a64091 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Tue, 21 Jan 2025 11:32:31 +0000 Subject: [PATCH] fix(vite): drop unneeded call to invalidate module --- packages/vite/src/vite.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/vite/src/vite.ts b/packages/vite/src/vite.ts index db51fd0b33..3b5ed399f6 100644 --- a/packages/vite/src/vite.ts +++ b/packages/vite/src/vite.ts @@ -216,7 +216,6 @@ export const bundle: NuxtBuilder['bundle'] = async (nuxt) => { ctx.nuxt.hook('app:templatesGenerated', (_app, changedTemplates) => { for (const template of changedTemplates) { for (const mod of server.moduleGraph.getModulesByFile(`virtual:nuxt:${encodeURIComponent(template.dst)}`) || []) { - server.moduleGraph.invalidateModule(mod) server.reloadModule(mod) } }