Skip to content

Commit 8d08be8

Browse files
author
Paul van Brenk
committed
use temp variable for current dir.
prevents calls to the host for every file.
1 parent 40b22b2 commit 8d08be8

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/compiler/tsc.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,10 @@ namespace ts {
1919
return;
2020
}
2121

22+
const currentDir = sys.getCurrentDirectory();
23+
2224
for (const file of files) {
23-
const filepath = getNormalizedAbsolutePath(file, sys.getCurrentDirectory());
25+
const filepath = getNormalizedAbsolutePath(file, currentDir);
2426

2527
sys.write(`TSFILE: ${filepath}${sys.newLine}`);
2628
}

0 commit comments

Comments
 (0)