UNPKG

@react-native/community-cli-plugin

Version:
33 lines (28 loc) 807 B
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow strict-local * @format */ import type { Config } from "@react-native-community/cli-types"; import type { ConfigT, YargArguments } from "metro-config"; export type { Config }; export type ConfigLoadingContext = Readonly<{ root: Config["root"], reactNativePath: Config["reactNativePath"], platforms: Config["platforms"], ... }>; /** * Load Metro config. * * Allows the CLI to override select values in `metro.config.js` based on * dynamic user options in `ctx`. */ declare export default function loadMetroConfig( ctx: ConfigLoadingContext, options?: YargArguments, ): Promise<ConfigT>;