function parseDependencies(code) {
  var ret = []

  code.replace(SLASH_RE, "")
      .replace(REQUIRE_RE, function(m, m1, m2) {
        if (m2) {
          ret.push(m2)
        }
      })

  return ret
}
util-deps.js - The parser for dependencies
ref: tests/research/parse-dependencies/test.html
ref: https://github.com/seajs/crequire