You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description of the issue:
When a tsconfig extends another tsconfig-base,
tsc will scan all of the files and directories that are siblings of the extended tsconfig-base, including any node modules and unrelated files.
Probably tsc thinks its also a program root(?)
Even that the docs specifics that files, include and exclude from the inheriting config file overwrite those from the base config file.
A side note: adding include: [] tsconfig-base solved the issue. but the default behaviour is problematic.
On this travis build log you can see the output of strace on tsc with a repro of the described behaviour, listing all of the stat operations.
You can see that there are alot of files that not supposed to be accessed by the tsc, being lstat https://travis-ci.org/brandtotal/missbehave-tsconfig-extend/jobs/208978852
On small projects and fast machines its not very noticeable.
On complex projects it can make tsc stat hundreds of thousands of files, causing serious slowdown.
The text was updated successfully, but these errors were encountered:
TypeScript Version: 2.2.1
Description of the issue:
When a tsconfig extends another tsconfig-base,
tsc will scan all of the files and directories that are siblings of the extended tsconfig-base, including any node modules and unrelated files.
Probably tsc thinks its also a program root(?)
Even that the docs specifics that
files, include and exclude from the inheriting config file overwrite those from the base config file.
A side note: adding
include: []
tsconfig-base solved the issue. but the default behaviour is problematic.On this travis build log you can see the output of strace on tsc with a repro of the described behaviour, listing all of the stat operations.
You can see that there are alot of files that not supposed to be accessed by the tsc, being
lstat
https://travis-ci.org/brandtotal/missbehave-tsconfig-extend/jobs/208978852
A sample of the log:
On the good test-case, where i've added
include: []
to the tsconfig-base, there is not access tothis-file-is-not-expected-to-be-lstat-by-tsc.ts
The code is available here:
https://github.com/brandtotal/missbehave-tsconfig-extend
On small projects and fast machines its not very noticeable.
On complex projects it can make tsc stat hundreds of thousands of files, causing serious slowdown.
The text was updated successfully, but these errors were encountered: