Skip to content

Commit 443e7c3

Browse files
committed
better
1 parent 0187b75 commit 443e7c3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

server/src/incrementalCompilation.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -397,10 +397,9 @@ function triggerIncrementalCompilationOfFile(
397397
);
398398

399399
let foundRewatchLockfileInProjectRoot = false;
400-
try {
401-
fs.statSync(projectRewatchLockfile);
400+
if (fs.existsSync(projectRewatchLockfile)) {
402401
foundRewatchLockfileInProjectRoot = true;
403-
} catch {}
402+
}
404403

405404
// if we find a rewatch.lock in the project root, it's a compilation of a local package
406405
// in the workspace.

0 commit comments

Comments
 (0)