defunctzombie / node-required

identifies which modules your script is using
67 stars 15 forks source link

only set the opt.cache if one hasn't been provided #5

Closed ghost closed 11 years ago

ghost commented 11 years ago

required is overwriting opt.cache even when I pass one in for some reason. I need to pass an explicit cache so I can:

  1. hackishly get the entry_parent for the main file
  2. thread the cache across multiple calls to required to avoid traversing the same files multiple times