Skip to content

Commit 7cc0f75

Browse files
authored
Use node moduleResolution everywhere (microsoft#47687)
TestRunner was already using it, but upstream projects (e.g. Compiler) were not, causing TestRunner to re-parse and re-bind all upstream files in (at least) editor scenarios), slowing down initial project load. In local testing, this cut a find-all-refs call in checker.ts from 5s to 2.5s.
1 parent 2172e19 commit 7cc0f75

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/testRunner/tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"extends": "../tsconfig-noncomposite-base",
33
"compilerOptions": {
44
"outFile": "../../built/local/run.js",
5-
"moduleResolution": "node",
65
"composite": false,
76
"declaration": false,
87
"declarationMap": false,

src/tsconfig-base.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"pretty": true,
44
"lib": ["es2015.iterable", "es2015.generator", "es5"],
55
"target": "es5",
6-
"moduleResolution": "classic",
6+
"moduleResolution": "node",
77
"rootDir": ".",
88

99
"declaration": true,

0 commit comments

Comments
 (0)