UNPKG

@vercel/microfrontends

Version:

Defines configuration and utilities for microfrontends development

28 lines (22 loc) 1.09 kB
import { A as ApplicationContext } from '../get-application-context-e8a5a0e2.js'; declare function findConfig({ dir, customConfigFilename, }: { dir: string; customConfigFilename: string | undefined; }): string | null; declare function generateDefaultAssetPrefixFromName({ name, }: { name: string; }): string; declare function getPossibleConfigurationFilenames({ customConfigFilename, }: { customConfigFilename: string | undefined; }): string[] | readonly ["microfrontends.json", "microfrontends.jsonc"]; 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; export { findConfig, generateDefaultAssetPrefixFromName, getPossibleConfigurationFilenames, inferMicrofrontendsLocation };