Is there a way to configure a WebStorm project that so node_modules
is selected as library root
but that it's also excluded from indexing?
I swear I saw a project that indicated node_modules
was both library root
and excluded
but I can't figure out how to set that up. Anybody know how?
No, it's impossible. Because library root
means "index a part of node_modules corresponding to direct dependencies from package.json, and exclude the rest part of it (i.e. indirect dependencies - dependencies of dependencies)" and excluded
means "exclude the whole node_modules (i.e. both direct and indirect dependencies)".
If you want to have node_modules excluded
, just go to "Settings | Languages & Frameworks | JavaScript | Libraries" and unselect corresponding node_modules library.