@vercel/microfrontends 0.17.0 → 0.17.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -530,11 +530,12 @@ var MicrofrontendConfigIsomorphic = class {
530
530
  constructor({
531
531
  config,
532
532
  overrides,
533
- meta
533
+ meta,
534
+ opts
534
535
  }) {
535
536
  this.childApplications = {};
536
537
  var _a, _b, _c, _d;
537
- MicrofrontendConfigIsomorphic.validate(config);
538
+ MicrofrontendConfigIsomorphic.validate(config, opts);
538
539
  const disableOverrides = ((_b = (_a = config.options) == null ? void 0 : _a.vercel) == null ? void 0 : _b.disableOverrides) ?? false;
539
540
  this.overrides = overrides && !disableOverrides ? overrides : void 0;
540
541
  this.isMainConfig = isMainConfig(config);
@@ -582,12 +583,19 @@ var MicrofrontendConfigIsomorphic = class {
582
583
  meta
583
584
  };
584
585
  }
585
- static validate(config) {
586
+ static validate(config, opts) {
587
+ const skipValidation = (opts == null ? void 0 : opts.skipValidation) ?? [];
586
588
  const c = typeof config === "string" ? parse(config) : config;
587
589
  if (isMainConfig(c)) {
588
- validateConfigVersion(c.version);
589
- validateConfigPaths(c.applications);
590
- validateConfigDefaultApplication(c.applications);
590
+ if (!skipValidation.includes("version")) {
591
+ validateConfigVersion(c.version);
592
+ }
593
+ if (!skipValidation.includes("paths")) {
594
+ validateConfigPaths(c.applications);
595
+ }
596
+ if (!skipValidation.includes("defaultApplication")) {
597
+ validateConfigDefaultApplication(c.applications);
598
+ }
591
599
  }
592
600
  return c;
593
601
  }