lib/resolve.js
function resolve(file) {
  // not too sure about windows, but put the \\
  // just in case
  if(!/^(\\\\|\/)/.test(file)) {
    return path.normalize(path.join(process.cwd(), file));
  }
  return file;
}
function resolve(file) {
  // not too sure about windows, but put the \\
  // just in case
  if(!/^(\\\\|\/)/.test(file)) {
    return path.normalize(path.join(process.cwd(), file));
  }
  return file;
}
function resolve ( file ) { // not too sure about windows, but put the \\ // just in case if ( ! / ^(\\\\|\/) / . test ( file ) ) { return path . normalize ( path . join ( process . cwd ( ) , file ) ) ; } return file ; }
Utility used to resolve relative paths so that circular references
can be detected correctly.
Utility used to resolve relative paths so that circular references can be detected correctly .