PHP 7.4.33
Preview: loadMetroConfig.js.flow Size: 830 B
/var/www/uibuilder.cmshelp.dk/httpdocs/node_modules/@react-native/community-cli-plugin/dist/utils/loadMetroConfig.js.flow
/**
 * 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
 * @oncall react_native
 */

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>;

Directory Contents

Dirs: 0 × Files: 14
Name Size Perms Modified Actions
466 B lrw-r--r-- 2025-03-28 11:04:34
Edit Download
649 B lrw-r--r-- 2025-03-28 11:04:34
Edit Download
734 B lrw-r--r-- 2025-03-28 11:04:34
Edit Download
744 B lrw-r--r-- 2025-03-28 11:04:34
Edit Download
1.32 KB lrw-r--r-- 2025-03-28 11:04:34
Edit Download
819 B lrw-r--r-- 2025-03-28 11:04:34
Edit Download
2.78 KB lrw-r--r-- 2025-03-28 11:04:34
Edit Download
830 B lrw-r--r-- 2025-03-28 11:04:34
Edit Download
882 B lrw-r--r-- 2025-03-28 11:04:34
Edit Download
956 B lrw-r--r-- 2025-03-28 11:04:34
Edit Download
611 B lrw-r--r-- 2025-03-28 11:04:34
Edit Download
376 B lrw-r--r-- 2025-03-28 11:04:34
Edit Download
3.35 KB lrw-r--r-- 2025-03-28 11:04:34
Edit Download
1.15 KB lrw-r--r-- 2025-03-28 11:04:34
Edit Download
If ZipArchive is unavailable, a .tar will be created (no compression).