resolve-from-possible-names.js 497 B

1234567891011121314151617
  1. "use strict";
  2. exports.__esModule = true;
  3. exports.default = resolveFromPossibleNames;
  4. var _resolve = require("./resolve");
  5. var _resolve2 = _interopRequireDefault(_resolve);
  6. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  7. function resolveFromPossibleNames(possibleNames, dirname) {
  8. return possibleNames.reduce(function (accum, curr) {
  9. return accum || (0, _resolve2.default)(curr, dirname);
  10. }, null);
  11. }
  12. module.exports = exports["default"];