PHP WebShell

Текущая директория: /usr/lib/node_modules/bitgo/node_modules/metro/src/integration_tests/basic_bundle

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

'use strict';

declare var __METRO_GLOBAL_PREFIX__: string;
declare var __DOWNLOAD_AND_EXEC_FOR_TESTS__: (path: string) => Promise<mixed>;

const key = `${global.__METRO_GLOBAL_PREFIX__ ?? ''}__loadBundleAsync`;

global[key] = async function loadBundleAsyncForTest(path: string) {
  await __DOWNLOAD_AND_EXEC_FOR_TESTS__(path);
};

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


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