'use strict';

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = loadConsumer;

var _path;

function _load_path() {
  return _path = _interopRequireDefault(require('path'));
}

var _consumer;

function _load_consumer() {
  return _consumer = _interopRequireDefault(require('./consumer'));
}

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function loadConsumer(currentPath) {
  if (!currentPath) currentPath = process.cwd();
  return (_consumer || _load_consumer()).default.load((_path || _load_path()).default.resolve(currentPath));
}