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