How to stop checking node_modules
On small projects, I like the automatic listing of MS Code. But the moment the project starts pulling npm dependencies, it becomes useless
Is there a way to set up specific folders to check? I know "search.excludeFolders"
, but it doesn't help with this problem.
+3
J. Abrahamson
source
to share
1 answer
If you are using TypeScript, you can create a file tsconfig.json
and choose from three options:
- Provide an explicit list of files to compile, thereby preventing errors from being shown
node_modules/*
. - Don't explicitly list the files (by default, all files
./**/*.ts
will be compiled), but place themtsconfig.json
inside your source folder, whichnode_modules
will automatically be excluded from compilation. - Use the new feature
exclude
intsconfig.json
(available soon).
+2
zlumer
source
to share