UNPKG

@vercel/microfrontends

Version:

Defines configuration and utilities for microfrontends development

24 lines (19 loc) 957 B
import { A as ApplicationContext } from '../get-application-context-e8a5a0e2.js'; declare function findConfig({ dir, customConfigFilename, }: { dir: string; customConfigFilename: string | undefined; }): string | null; interface FindDefaultMicrofrontendPackageArgs { repositoryRoot: string; applicationContext: ApplicationContext; customConfigFilename: string | undefined; } /** * Given a repository root and a package name, find the path to the package directory with * a microfrontends config that contains the given name in its applications. */ declare function inferMicrofrontendsLocation(opts: FindDefaultMicrofrontendPackageArgs): string; declare function getPossibleConfigurationFilenames({ customConfigFilename, }: { customConfigFilename: string | undefined; }): string[] | readonly ["microfrontends.json", "microfrontends.jsonc"]; export { findConfig, getPossibleConfigurationFilenames, inferMicrofrontendsLocation };