Skip to content

Commit d2a95c5

Browse files
committedJan 21, 2025
fix(vite): drop unneeded call to invalidate module

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed
 

‎packages/vite/src/vite.ts

-1
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,6 @@ export const bundle: NuxtBuilder['bundle'] = async (nuxt) => {
216216
ctx.nuxt.hook('app:templatesGenerated', (_app, changedTemplates) => {
217217
for (const template of changedTemplates) {
218218
for (const mod of server.moduleGraph.getModulesByFile(`virtual:nuxt:${encodeURIComponent(template.dst)}`) || []) {
219-
server.moduleGraph.invalidateModule(mod)
220219
server.reloadModule(mod)
221220
}
222221
}

0 commit comments

Comments
 (0)
Please sign in to comment.