example/vendor/mocha/support/compile.js
function parseRequires(js) {
  return js
    .replace(/require\('events'\)/g, "require('browser/events')")
    .replace(/require\('debug'\)/g, "require('browser/debug')")
    .replace(/require\('path'\)/g, "require('browser/path')")
    .replace(/require\('diff'\)/g, "require('browser/diff')")
    .replace(/require\('tty'\)/g, "require('browser/tty')")
    .replace(/require\('fs'\)/g, "require('browser/fs')")
}
function parseRequires(js) {
  return js
    .replace(/require\('events'\)/g, "require('browser/events')")
    .replace(/require\('debug'\)/g, "require('browser/debug')")
    .replace(/require\('path'\)/g, "require('browser/path')")
    .replace(/require\('diff'\)/g, "require('browser/diff')")
    .replace(/require\('tty'\)/g, "require('browser/tty')")
    .replace(/require\('fs'\)/g, "require('browser/fs')")
}
function parseRequires ( js ) { return js . replace ( / require\('events'\) / g , "require('browser/events')" ) . replace ( / require\('debug'\) / g , "require('browser/debug')" ) . replace ( / require\('path'\) / g , "require('browser/path')" ) . replace ( / require\('diff'\) / g , "require('browser/diff')" ) . replace ( / require\('tty'\) / g , "require('browser/tty')" ) . replace ( / require\('fs'\) / g , "require('browser/fs')" ) }
Parse requires.
Parse requires .