Skip to content

Commit

Permalink
docs: update code documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
skovhus committed Nov 20, 2023
1 parent 3cc24a0 commit c9233eb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/vite/src/node/server/hmr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ function propagateUpdate(
* @param nodeChain The chain of nodes/imports that lead to the node.
* (The last node in the chain imports the `node` parameter)
* @param currentChain The current chain tracked from the `node` parameter
* @param traversedModules The set of modules that have been traversed
* @param traversedModules The set of modules that have traversed
*/
function isNodeWithinCircularImports(
node: ModuleNode,
Expand All @@ -386,7 +386,6 @@ function isNodeWithinCircularImports(
// means there's an import loop with a HMR-accepted module in it.

if (traversedModules.has(node)) {
// To avoid infinite recursion, we only check each module once.
return false
}
traversedModules.add(node)
Expand Down

0 comments on commit c9233eb

Please sign in to comment.