Use node moduleResolution everywhere (#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.
This commit is contained in:
Andrew Casey 2022-02-01 15:59:59 -08:00 committed by GitHub
parent 2172e1964f
commit 7cc0f755ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View File

@ -2,7 +2,6 @@
"extends": "../tsconfig-noncomposite-base",
"compilerOptions": {
"outFile": "../../built/local/run.js",
"moduleResolution": "node",
"composite": false,
"declaration": false,
"declarationMap": false,

View File

@ -3,7 +3,7 @@
"pretty": true,
"lib": ["es2015.iterable", "es2015.generator", "es5"],
"target": "es5",
"moduleResolution": "classic",
"moduleResolution": "node",
"rootDir": ".",
"declaration": true,