src/loader.js
function loadModule (actorPath) {
  try {
    let key = path.resolve(actorPath)
    delete require.cache[ key ]
    return require(actorPath)
  } catch (err) {
    log.error(`Error loading actor module at ${actorPath} with ${err.stack}`)
    return undefined
  }
}
function loadModule (actorPath) {
  try {
    let key = path.resolve(actorPath)
    delete require.cache[ key ]
    return require(actorPath)
  } catch (err) {
    log.error(`Error loading actor module at ${actorPath} with ${err.stack}`)
    return undefined
  }
}
function loadModule ( actorPath ) { try { let key = path . resolve ( actorPath ) delete require . cache [ key ] return require ( actorPath ) } catch ( err ) { log . error ( ` ${ actorPath } ${ err . stack } ` ) return undefined } }
loads a module based on the file path
loads a module based on the file path