Skip to content

Commit

Permalink
chore: update comments (#8394)
Browse files Browse the repository at this point in the history
  • Loading branch information
caoxiemeihao committed May 30, 2022
1 parent 1a16f12 commit 3d14372
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/utils.ts
Expand Up @@ -485,7 +485,7 @@ export function writeFile(
}

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

0 comments on commit 3d14372

Please sign in to comment.