first commit

This commit is contained in:
2026-03-10 16:18:05 +00:00
commit 11f9c069b5
31635 changed files with 3187747 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
/**
* 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.
*
*
* @format
* @oncall react_native
*/
declare function createModuleIdFactory(): (path: string) => number;
export default createModuleIdFactory;

View File

@@ -0,0 +1 @@
module.exports = require("metro-config/private/defaults/createModuleIdFactory");

View File

@@ -0,0 +1,21 @@
/**
* 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.
*
*
* @format
* @oncall react_native
*/
import type { RootPerfLogger } from "../types";
export { default as defaultCreateModuleIdFactory } from "./createModuleIdFactory";
export declare const assetExts: Array<string>;
export declare const assetResolutions: Array<string>;
export declare const sourceExts: Array<string>;
export declare const additionalExts: Array<string>;
export declare const moduleSystem: string;
export declare const platforms: Array<string>;
export declare const DEFAULT_METRO_MINIFIER_PATH: "metro-minify-terser";
export declare const noopPerfLoggerFactory: () => RootPerfLogger;

View File

@@ -0,0 +1,2 @@
module.exports = require("metro-config/private/defaults/defaults");
module.exports.default = module.exports;

View File

@@ -0,0 +1,13 @@
/**
* 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.
*
*
* @format
* @oncall react_native
*/
declare function exclusionList(additionalExclusions?: ReadonlyArray<RegExp | string>): RegExp;
export default exclusionList;

View File

@@ -0,0 +1 @@
module.exports = require("metro-config/private/defaults/exclusionList");

View File

@@ -0,0 +1,13 @@
/**
* 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.
*
*
* @format
* @oncall react_native
*/
declare function getMaxWorkers(workers: null | undefined | number): number;
export default getMaxWorkers;

View File

@@ -0,0 +1 @@
module.exports = require("metro-config/private/defaults/getMaxWorkers");

View File

@@ -0,0 +1,14 @@
// See: https://github.com/facebook/metro/blob/v0.83.2/packages/metro-config/src/defaults/index.js
// NOTE(cedric): This file can't be typed properly due to complex CJS structures
// NOTE(cedric): This file has lots more exports, but neither of them should be used directly by Expo
import type { ConfigT } from '../types';
interface getDefaultConfig {
(rootPath: string | null): Promise<ConfigT>;
getDefaultValues: (rootPath: string | null) => ConfigT;
}
declare const getDefaultValues: getDefaultConfig;
export default getDefaultValues;

View File

@@ -0,0 +1 @@
module.exports = require("metro-config/private/defaults/index");

View File

@@ -0,0 +1,14 @@
/**
* 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.
*
*
* @format
* @oncall react_native
*/
import type { InputConfigT } from "../types";
declare function validConfig(): Promise<InputConfigT>;
export default validConfig;

View File

@@ -0,0 +1 @@
module.exports = require("metro-config/private/defaults/validConfig");