I will put something about node-modules-regexp in the docs for people who want to avoid node_modules. I just think almost anyone who uses this isn't going to be well served by a boolean avoidNodeModules setting (nyc would certainly disable that feature).
Right now, this is the API:
I don't like it. It suggests your allowed to do some shenanigans like replace module._compile.
I think it should be more like
pirates
, with just a simple transform:I think I will avoid a filter function option though, since you can just do this:
I will put something about
node-modules-regexp
in the docs for people who want to avoidnode_modules
. I just think almost anyone who uses this isn't going to be well served by a booleanavoidNodeModules
setting (nyc
would certainly disable that feature).// @novemberborn, @bcoe