diff --git a/packages/vite/src/vite.ts b/packages/vite/src/vite.ts index 7471dbdfd8..bc38f848ca 100644 --- a/packages/vite/src/vite.ts +++ b/packages/vite/src/vite.ts @@ -215,7 +215,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) } }