Skip to content

Commit b80d5ec

Browse files
authored
fix: getModulesByFile should return a serverModule (#18715)
1 parent 824c347 commit b80d5ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/vite/src/node/server/mixedModuleGraph.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ export class ModuleGraph {
308308
if (ssrModules) {
309309
for (const mod of ssrModules) {
310310
if (mod.id == null || !this._client.getModuleById(mod.id)) {
311-
result.add(this.getBackwardCompatibleBrowserModuleNode(mod)!)
311+
result.add(this.getBackwardCompatibleServerModuleNode(mod)!)
312312
}
313313
}
314314
}

0 commit comments

Comments
 (0)