PHP WebShell

Текущая директория: /usr/lib/node_modules/bitgo/node_modules/@react-native/community-cli-plugin/dist/commands/bundle

Просмотр файла: buildBundle.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
 */

import type { Config } from "@react-native-community/cli-types";
import type { RunBuildOptions } from "metro";
import type { ConfigT } from "metro-config";

export type BundleCommandArgs = {
  assetsDest?: string,
  assetCatalogDest?: string,
  entryFile: string,
  resetCache: boolean,
  resetGlobalCache: boolean,
  transformer?: string,
  minify?: boolean,
  config?: string,
  platform: string,
  dev: boolean,
  bundleOutput: string,
  bundleEncoding?: "utf8" | "utf16le" | "ascii",
  maxWorkers?: number,
  sourcemapOutput?: string,
  sourcemapSourcesRoot?: string,
  sourcemapUseAbsolutePath: boolean,
  verbose: boolean,
  unstableTransformProfile: "hermes-stable" | "hermes-canary" | "default",
  indexedRamBundle?: boolean,
  resolverOption?: Array<string>,
};

declare function buildBundle(
  _argv: Array<string>,
  ctx: Config,
  args: BundleCommandArgs,
  bundleImpl?: RunBuildOptions["output"]
): Promise<void>;

declare function buildBundleWithConfig(
  args: BundleCommandArgs,
  config: ConfigT,
  bundleImpl?: RunBuildOptions["output"]
): Promise<void>;

/**
 * UNSTABLE: This function is likely to be relocated and its API changed in
 * the near future. `@react-native/community-cli-plugin` should not be directly
 * depended on by projects or integrators -- this is exported for legacy
 * compatibility.
 *
 * Create a bundle using a pre-loaded Metro config. The config can be
 * re-used for several bundling calls if multiple platforms are being
 * bundled.
 */
declare export const unstable_buildBundleWithConfig: typeof buildBundleWithConfig;

declare export default typeof buildBundle;

Выполнить команду


Для локальной разработки. Не используйте в интернете!