istanbuljs / babel-plugin-istanbul

A babel plugin that adds istanbul instrumentation to ES6 code
BSD 3-Clause "New" or "Revised" License
624 stars 73 forks source link

Support turning off node_modules default exclude via flag #172

Closed hershmire closed 5 years ago

hershmire commented 6 years ago

This PR is part of resolving issue #898. The idea is to be able to turn off the default exclusion of **/node_modules/** for users that need/want to support local node_modules. As mentioned in that issue, the negateExclude (i.e. !**/node_modules/**) doesn't work for cases when you still want your exclusion list to still exclude matches within your local node_modules directory.

Related PRs for solving the above issue:

NOTE: this test-exclude PR (https://github.com/istanbuljs/istanbuljs/pull/213) will need to get merged and published before this is effective.

coreyfarrell commented 5 years ago

@hershmire when you have a chance could you fix the lint errors so we can see if this passes testing?

bcoe commented 5 years ago

bump, @hershmire would love to see this over the finish line.