Skip to content

Commit

Permalink
fix(ssr): look for dep in urlStack
Browse files Browse the repository at this point in the history
  • Loading branch information
aleclarson committed Jul 16, 2021
1 parent d3d843a commit 317bbcf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/ssr/ssrModuleLoader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ async function instantiateModule(
return nodeRequire(dep, mod.file, server.config.root)
}
dep = unwrapId(dep)
if (!pendingImports.get(dep)?.some(isCircular)) {
if (!isCircular(dep) && !pendingImports.get(dep)?.some(isCircular)) {
pendingDeps.push(dep)
if (pendingDeps.length == 1) {
pendingImports.set(url, pendingDeps)
Expand Down

0 comments on commit 317bbcf

Please sign in to comment.