Skip to content
This repository was archived by the owner on Apr 6, 2023. It is now read-only.

Commit d115b01

Browse files
authored
fix(vite): pass ssr condition to getModuleByUrl (#7260)
1 parent 497972b commit d115b01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/vite/src/utils/warmup.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export async function warmupViteServer (
1818
} catch (e) {
1919
logger.debug('Warmup for %s failed with: %s', url, e)
2020
}
21-
const mod = await server.moduleGraph.getModuleByUrl(url)
21+
const mod = await server.moduleGraph.getModuleByUrl(url, isServer)
2222
const deps = Array.from(mod?.importedModules || [])
2323
await Promise.all(deps.map(m => warmup(m.url.replace('/@id/__x00__', '\0'))))
2424
}

0 commit comments

Comments
 (0)