Starting with a basic create-react-app, npx create-react-app my-app --template typescript
, running tsc --listFiles
will list some files.
Then installing npm install @types/lodash-es
for example, and then running tsc --listFiles
will list every single type for lodash-es as well, even if theres not a single import for it.
Is there anything to prevent that? It seems to increase the compile time as well. For some larger projects, tsc basically just doesn't work for me anymore, just hanging.