@vercel/microfrontends 0.17.0 → 0.17.1

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.
@@ -582,12 +582,19 @@ var MicrofrontendConfigIsomorphic = class {
582
582
  meta
583
583
  };
584
584
  }
585
- static validate(config) {
585
+ static validate(config, opts) {
586
+ const skipValidation = (opts == null ? void 0 : opts.skipValidation) ?? [];
586
587
  const c = typeof config === "string" ? parse(config) : config;
587
588
  if (isMainConfig(c)) {
588
- validateConfigVersion(c.version);
589
- validateConfigPaths(c.applications);
590
- validateConfigDefaultApplication(c.applications);
589
+ if (!skipValidation.includes("version")) {
590
+ validateConfigVersion(c.version);
591
+ }
592
+ if (!skipValidation.includes("paths")) {
593
+ validateConfigPaths(c.applications);
594
+ }
595
+ if (!skipValidation.includes("defaultApplication")) {
596
+ validateConfigDefaultApplication(c.applications);
597
+ }
591
598
  }
592
599
  return c;
593
600
  }