defunctzombie / node-required

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

source undefined when same file required and includeSource is set #7

Closed defunctzombie closed 11 years ago

defunctzombie commented 11 years ago

If the includeSource option is set and we have the following set of requires:

a.js ( requires b.js, c.js) b.js ( requires c.js)

Then the output for c.js has source of undefined.

This was originally discovered by @anatoliychakkaev via https://github.com/substack/module-deps/pull/2