fix(vite): drop unneeded call to invalidate module

This commit is contained in:
Daniel Roe 2025-01-21 11:32:31 +00:00
parent 83d2361e86
commit b765251ce8
No known key found for this signature in database
GPG Key ID: 3714AB03996F442B

View File

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