Skip to content

Commit 3d14372

Browse files
authored
chore: update comments (#8394)
1 parent 1a16f12 commit 3d14372

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/vite/src/node/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ export function writeFile(
485485
}
486486

487487
/**
488-
* Use instead of fs.existsSync(filename)
488+
* Use fs.statSync(filename) instead of fs.existsSync(filename)
489489
* #2051 if we don't have read permission on a directory, existsSync() still
490490
* works and will result in massively slow subsequent checks (which are
491491
* unnecessary in the first place)

0 commit comments

Comments
 (0)