function _tryRequireFile()

in src/UserFunction.js [70:74]


function _tryRequireFile(file, extension) {
  const path = file + (extension || '');
  verbose('Try loading as commonjs:', path);
  return fs.existsSync(path) ? require(path) : undefined;
}