Skip to content

Commit

Permalink
fix: set firstSafeRealPathSyncRun correctly
Browse files Browse the repository at this point in the history
Co-Authored-By: Bjorn Lu <bjorn@bjornlu.com>
  • Loading branch information
sapphi-red and bluwy committed Mar 26, 2023
1 parent 9366d81 commit 9a6af8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/utils.ts
Expand Up @@ -620,7 +620,7 @@ let firstSafeRealPathSyncRun = false
function windowsSafeRealPathSync(path: string): string {
if (!firstSafeRealPathSyncRun) {
optimizeSafeRealPathSync()
firstSafeRealPathSyncRun = false
firstSafeRealPathSyncRun = true
}
return fs.realpathSync(path)
}
Expand Down

0 comments on commit 9a6af8e

Please sign in to comment.