lib/index.js
function _compile(str, filename) {
    var parent = this;
    try {
      var requires = detective(str);
    } catch (ex) {
      ex.toString = function() {
        return filename + ':' + this.loc.line + '\n ' + ex.message;
      }
      throw ex;
    }
    requires.forEach(function(req) {
      if (modules.isRelative(req)) {
        Module._load(req, parent);
      } else {
        if (!modules.isCore(req)) {
          dependencies.push(modules.name(req));
        }
      }
    });
  }
function _compile(str, filename) {
    var parent = this;
    try {
      var requires = detective(str);
    } catch (ex) {
      ex.toString = function() {
        return filename + ':' + this.loc.line + '\n ' + ex.message;
      }
      throw ex;
    }
    requires.forEach(function(req) {
      if (modules.isRelative(req)) {
        Module._load(req, parent);
      } else {
        if (!modules.isCore(req)) {
          dependencies.push(modules.name(req));
        }
      }
    });
  }
function _compile ( str , filename ) { var parent = this ; try { var requires = detective ( str ) ; } catch ( ex ) { ex . toString = function ( ) { return filename + ':' + this . loc . line + '\n ' + ex . message ; } throw ex ; } requires . forEach ( function ( req ) { if ( modules . isRelative ( req ) ) { Module . _load ( req , parent ) ; } else { if ( ! modules . isCore ( req ) ) { dependencies . push ( modules . name ( req ) ) ; } } } ) ; }
override of Module._compile to find all call to "require"
override of Module . _compile to find all call to require