resolve-config.js 724 B

123456789101112131415161718192021222324
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. Object.defineProperty(exports, "default", {
  6. enumerable: true,
  7. get: function() {
  8. return resolveConfig;
  9. }
  10. });
  11. const _resolveConfig = /*#__PURE__*/ _interop_require_default(require("../util/resolveConfig"));
  12. const _getAllConfigs = /*#__PURE__*/ _interop_require_default(require("../util/getAllConfigs"));
  13. function _interop_require_default(obj) {
  14. return obj && obj.__esModule ? obj : {
  15. default: obj
  16. };
  17. }
  18. function resolveConfig(...configs) {
  19. let [, ...defaultConfigs] = (0, _getAllConfigs.default)(configs[0]);
  20. return (0, _resolveConfig.default)([
  21. ...configs,
  22. ...defaultConfigs
  23. ]);
  24. }