code: function getExports(fullpath, { initializer, call, inject }, pathName) {
    let exports = utils.loadFile(fullpath);
    // process exports as you like
    if (initializer) {
      exports = initializer(exports, { path: fullpath, pathName });
    }
  
    // return exports when it's a class or generator
    //
    // module.exports = class Service {};
    // or
    // module.exports = function*() {}
    if (is.class(exports) || is.generatorFunction(exports) || is.asyncFunction(exports)) {
      return exports;
    }
  
    // return exports after call when it's a function
    //
    // module.exports = function(app) {
    //   return {};
    // }
    if (call && is.function(exports)) {
      exports = exports(inject);
      if (exports != null) {
        return exports;
      }
    }
  
    // return exports what is
    return exports;
  }
docs: Get exports from filepath If exports is null/undefined, it will be ignored