We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0187b75 commit 443e7c3Copy full SHA for 443e7c3
1 file changed
server/src/incrementalCompilation.ts
@@ -397,10 +397,9 @@ function triggerIncrementalCompilationOfFile(
397
);
398
399
let foundRewatchLockfileInProjectRoot = false;
400
- try {
401
- fs.statSync(projectRewatchLockfile);
+ if (fs.existsSync(projectRewatchLockfile)) {
402
foundRewatchLockfileInProjectRoot = true;
403
- } catch {}
+ }
404
405
// if we find a rewatch.lock in the project root, it's a compilation of a local package
406
// in the workspace.
0 commit comments