From c9233eb7acf62bf853903aa1ee1481906bb47bbc Mon Sep 17 00:00:00 2001 From: skovhus Date: Mon, 20 Nov 2023 09:34:29 +0100 Subject: [PATCH] docs: update code documentation --- packages/vite/src/node/server/hmr.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/vite/src/node/server/hmr.ts b/packages/vite/src/node/server/hmr.ts index 13be6ea0e5ff3a..45ba8d5344081f 100644 --- a/packages/vite/src/node/server/hmr.ts +++ b/packages/vite/src/node/server/hmr.ts @@ -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, @@ -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)