Skip to content

Commit

Permalink
fix: getModulesByFile should return a serverModule (#18715)
Browse files Browse the repository at this point in the history
  • Loading branch information
sapphi-red authored Nov 20, 2024
1 parent 824c347 commit b80d5ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/server/mixedModuleGraph.ts
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ export class ModuleGraph {
if (ssrModules) {
for (const mod of ssrModules) {
if (mod.id == null || !this._client.getModuleById(mod.id)) {
result.add(this.getBackwardCompatibleBrowserModuleNode(mod)!)
result.add(this.getBackwardCompatibleServerModuleNode(mod)!)
}
}
}
Expand Down

0 comments on commit b80d5ec

Please sign in to comment.