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,36 @@
/**
* 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
*/
/**
* Efficient builder for base64 VLQ mappings strings.
*
* This class uses a buffer that is preallocated with one megabyte and is
* reallocated dynamically as needed, doubling its size.
*
* Encoding never creates any complex value types (strings, objects), and only
* writes character values to the buffer.
*
* For details about source map terminology and specification, check
* https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit
*/
declare class B64Builder {
buffer: Buffer;
pos: number;
hasSegment: boolean;
constructor();
markLines(n: number): this;
startSegment(column: number): this;
append(value: number): this;
toString(): string;
_writeByte(byte: number): void;
_realloc(): void;
}
export default B64Builder;

View File

@@ -0,0 +1 @@
module.exports = require("metro-source-map/private/B64Builder");

View File

@@ -0,0 +1,41 @@
/**
* 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 { IndexMap, IndexMapSection, MixedSourceMap } from "./source-map";
/**
* Builds a source-mapped bundle by concatenating strings and their
* corresponding source maps (if any).
*
* Usage:
*
* const builder = new BundleBuilder('bundle.js');
* builder
* .append('foo\n', fooMap)
* .append('bar\n')
* // ...
* const code = builder.getCode();
* const map = builder.getMap();
*/
export declare class BundleBuilder {
_file: string;
_sections: Array<IndexMapSection>;
_line: number;
_column: number;
_code: string;
_afterMappedContent: boolean;
constructor(file: string);
_pushMapSection(map: MixedSourceMap): void;
_endMappedContent(): void;
append(code: string, map: null | undefined | MixedSourceMap): this;
getMap(): MixedSourceMap;
getCode(): string;
}
export declare function createIndexMap(file: string, sections: Array<IndexMapSection>): IndexMap;

View File

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

View File

@@ -0,0 +1,26 @@
/**
* 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 { GeneratedPositionLookup, IConsumer, IterationOrder, Mapping, SourcePosition } from "./types";
declare class AbstractConsumer implements IConsumer {
_sourceMap: {
readonly file?: string;
};
constructor(sourceMap: {
readonly file?: string;
});
originalPositionFor(generatedPosition: GeneratedPositionLookup): SourcePosition;
generatedMappings(): Iterable<Mapping>;
eachMapping(callback: (mapping: Mapping) => any, context?: any, order?: IterationOrder): void;
get file(): null | undefined | string;
sourceContentFor(source: string, nullOnMissing: true): null | undefined | string;
}
export default AbstractConsumer;

View File

@@ -0,0 +1 @@
module.exports = require("metro-source-map/private/Consumer/AbstractConsumer");

View File

@@ -0,0 +1,33 @@
/**
* 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 { MixedSourceMap } from "../source-map";
import type { LookupBias } from "./constants.js";
import type { GeneratedPositionLookup, IConsumer, IterationOrder, Mapping, SourcePosition } from "./types";
/**
* A source map consumer that supports both "basic" and "indexed" source maps.
* Uses `MappingsConsumer` and `SectionsConsumer` under the hood (via
* `createConsumer`).
*/
declare class DelegatingConsumer implements IConsumer {
static readonly GENERATED_ORDER: IterationOrder;
static readonly ORIGINAL_ORDER: IterationOrder;
static readonly GREATEST_LOWER_BOUND: LookupBias;
static readonly LEAST_UPPER_BOUND: LookupBias;
_rootConsumer: IConsumer;
constructor(sourceMap: MixedSourceMap);
originalPositionFor(generatedPosition: GeneratedPositionLookup): SourcePosition;
generatedMappings(): Iterable<Mapping>;
eachMapping(callback: (mapping: Mapping) => any, context?: any, order?: IterationOrder): void;
get file(): null | undefined | string;
sourceContentFor(source: string, nullOnMissing: true): null | undefined | string;
}
export default DelegatingConsumer;

View File

@@ -0,0 +1 @@
module.exports = require("metro-source-map/private/Consumer/DelegatingConsumer");

View File

@@ -0,0 +1,32 @@
/**
* 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 { BasicSourceMap } from "../source-map";
import type { GeneratedPositionLookup, IConsumer, Mapping, SourcePosition } from "./types";
import AbstractConsumer from "./AbstractConsumer";
/**
* A source map consumer that supports "basic" source maps (that have a
* `mappings` field and no sections).
*/
declare class MappingsConsumer extends AbstractConsumer implements IConsumer {
_sourceMap: BasicSourceMap;
_decodedMappings: null | undefined | ReadonlyArray<Mapping>;
_normalizedSources: null | undefined | ReadonlyArray<string>;
constructor(sourceMap: BasicSourceMap);
originalPositionFor(generatedPosition: GeneratedPositionLookup): SourcePosition;
_decodeMappings(): Generator<Mapping, void, void>;
_normalizeAndCacheSources(): ReadonlyArray<string>;
_decodeAndCacheMappings(): ReadonlyArray<Mapping>;
generatedMappings(): Iterable<Mapping>;
_indexOfSource(source: string): null | undefined | number;
sourceContentFor(source: string, nullOnMissing: true): null | undefined | string;
}
export default MappingsConsumer;

View File

@@ -0,0 +1 @@
module.exports = require("metro-source-map/private/Consumer/MappingsConsumer");

View File

@@ -0,0 +1,27 @@
/**
* 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 { IndexMap } from "../source-map";
import type { GeneratedOffset, GeneratedPositionLookup, IConsumer, Mapping, SourcePosition } from "./types";
import AbstractConsumer from "./AbstractConsumer";
/**
* A source map consumer that supports "indexed" source maps (that have a
* `sections` field and no top-level mappings).
*/
declare class SectionsConsumer extends AbstractConsumer implements IConsumer {
_consumers: ReadonlyArray<[GeneratedOffset, IConsumer]>;
constructor(sourceMap: IndexMap);
originalPositionFor(generatedPosition: GeneratedPositionLookup): SourcePosition;
generatedMappings(): Iterable<Mapping>;
_consumerForPosition(generatedPosition: GeneratedPositionLookup): null | undefined | [GeneratedOffset, IConsumer];
sourceContentFor(source: string, nullOnMissing: true): null | undefined | string;
}
export default SectionsConsumer;

View File

@@ -0,0 +1 @@
module.exports = require("metro-source-map/private/Consumer/SectionsConsumer");

View File

@@ -0,0 +1,28 @@
/**
* 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 const FIRST_COLUMN: number;
declare const FIRST_LINE: number;
export declare type IterationOrder = unknown;
declare const GENERATED_ORDER: IterationOrder;
declare const ORIGINAL_ORDER: IterationOrder;
export declare type LookupBias = unknown;
declare const GREATEST_LOWER_BOUND: LookupBias;
declare const LEAST_UPPER_BOUND: LookupBias;
declare const EMPTY_POSITION: {
readonly source: null;
readonly name: null;
readonly line: null;
readonly column: null;
};
declare function iterationOrderToString(x: IterationOrder): string;
declare function lookupBiasToString(x: LookupBias): string;
export { FIRST_COLUMN, FIRST_LINE, GENERATED_ORDER, ORIGINAL_ORDER, GREATEST_LOWER_BOUND, LEAST_UPPER_BOUND, EMPTY_POSITION, iterationOrderToString, lookupBiasToString };

View File

@@ -0,0 +1,2 @@
module.exports = require("metro-source-map/private/Consumer/constants");
module.exports.default = module.exports;

View File

@@ -0,0 +1,15 @@
/**
* 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 { MixedSourceMap } from "../source-map";
import type { IConsumer } from "./types";
declare function createConsumer(sourceMap: MixedSourceMap): IConsumer;
export default createConsumer;

View File

@@ -0,0 +1 @@
module.exports = require("metro-source-map/private/Consumer/createConsumer");

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
*/
import DelegatingConsumer from "./DelegatingConsumer";
export default DelegatingConsumer;

View File

@@ -0,0 +1 @@
module.exports = require("metro-source-map/private/Consumer/index");

View File

@@ -0,0 +1,15 @@
/**
* 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 normalizeSourcePath(sourceInput: string, map: {
readonly sourceRoot?: null | undefined | string;
}): string;
export default normalizeSourcePath;

View File

@@ -0,0 +1 @@
module.exports = require("metro-source-map/private/Consumer/normalizeSourcePath");

View File

@@ -0,0 +1,20 @@
/**
* 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 { GeneratedOffset } from "./types";
export declare function shiftPositionByOffset<T extends {
readonly line?: null | number;
readonly column?: null | number;
}>(pos: T, offset: GeneratedOffset): T;
export declare function subtractOffsetFromPosition<T extends {
readonly line?: null | number;
readonly column?: null | number;
}>(pos: T, offset: GeneratedOffset): T;

View File

@@ -0,0 +1,2 @@
module.exports = require("metro-source-map/private/Consumer/positionMath");
module.exports.default = module.exports;

View File

@@ -0,0 +1,12 @@
/**
* 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
*/
export declare function greatestLowerBound<T, U>(elements: ReadonlyArray<T>, target: U, comparator: ($$PARAM_0$$: U, $$PARAM_1$$: T) => number): null | undefined | number;

View File

@@ -0,0 +1,2 @@
module.exports = require("metro-source-map/private/Consumer/search");
module.exports.default = module.exports;

View File

@@ -0,0 +1,47 @@
/**
* 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 { IterationOrder, LookupBias } from "./constants";
export type { IterationOrder, LookupBias };
export interface GeneratedOffset {
readonly lines: number;
readonly columns: number;
}
export interface SourcePosition {
source?: null | string;
line?: null | number;
column?: null | number;
name?: null | string;
}
export interface GeneratedPosition {
readonly line: number;
readonly column: number;
}
export interface GeneratedPositionLookup {
readonly line?: null | number;
readonly column?: null | number;
readonly bias?: LookupBias;
}
export interface Mapping {
readonly source?: null | string;
readonly generatedLine: number;
readonly generatedColumn: number;
readonly originalLine?: null | number;
readonly originalColumn?: null | number;
readonly name?: null | string;
}
export interface IConsumer {
originalPositionFor(generatedPosition: GeneratedPositionLookup): SourcePosition;
generatedMappings(): Iterable<Mapping>;
eachMapping(callback: (mapping: Mapping) => any, context?: any, order?: IterationOrder): void;
get file(): null | undefined | string;
sourceContentFor(source: string, nullOnMissing: true): null | undefined | string;
}

View File

@@ -0,0 +1 @@
module.exports = require("metro-source-map/private/Consumer/types");

View File

@@ -0,0 +1,65 @@
/**
* 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 { BasicSourceMap, FBSourceFunctionMap, FBSourceMetadata } from "./source-map";
import B64Builder from "./B64Builder";
export interface FileFlags {
readonly addToIgnoreList?: boolean;
}
/**
* Generates a source map from raw mappings.
*
* Raw mappings are a set of 2, 4, or five elements:
*
* - line and column number in the generated source
* - line and column number in the original source
* - symbol name in the original source
*
* Mappings have to be passed in the order appearance in the generated source.
*/
declare class Generator {
builder: B64Builder;
last: {
generatedColumn: number;
generatedLine: number;
name: number;
source: number;
sourceColumn: number;
sourceLine: number;
};
names: IndexedSet;
source: number;
sources: Array<string>;
sourcesContent: Array<null | undefined | string>;
x_facebook_sources: Array<null | undefined | FBSourceMetadata>;
x_google_ignoreList: Array<number>;
constructor();
startFile(file: string, code: string, functionMap: null | undefined | FBSourceFunctionMap, flags?: FileFlags): void;
endFile(): void;
addSimpleMapping(generatedLine: number, generatedColumn: number): void;
addSourceMapping(generatedLine: number, generatedColumn: number, sourceLine: number, sourceColumn: number): void;
addNamedSourceMapping(generatedLine: number, generatedColumn: number, sourceLine: number, sourceColumn: number, name: string): void;
toMap(file?: string, options?: {
excludeSource?: boolean;
}): BasicSourceMap;
toString(file?: string, options?: {
excludeSource?: boolean;
}): string;
hasSourcesMetadata(): boolean;
}
export default Generator;
declare class IndexedSet {
map: Map<string, number>;
nextIndex: number;
constructor();
indexFor(x: string): number;
items(): Array<string>;
}

View File

@@ -0,0 +1 @@
module.exports = require("metro-source-map/private/Generator");

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 { MixedSourceMap } from "./source-map";
declare function composeSourceMaps(maps: ReadonlyArray<MixedSourceMap>): MixedSourceMap;
export default composeSourceMaps;

View File

@@ -0,0 +1 @@
module.exports = require("metro-source-map/private/composeSourceMaps");

63
node_modules/@expo/metro/metro-source-map/encode.d.ts generated vendored Normal file
View File

@@ -0,0 +1,63 @@
/**
* Portions 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
*/
/**
* Copyright 2011 Mozilla Foundation and contributors
* Licensed under the New BSD license. See LICENSE or:
* http://opensource.org/licenses/BSD-3-Clause
*
* Based on the Base 64 VLQ implementation in Closure Compiler:
* https://git.io/vymuA
*
* Copyright 2011 The Closure Compiler Authors. All rights reserved.
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above
* copyright notice, this list of conditions and the following
* disclaimer in the documentation and/or other materials provided
* with the distribution.
* * Neither the name of Google Inc. nor the names of its
* contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* @copyright
*
* Associate this with the THIRD_PARTY_LICENCE type to ensure it isn't
* stripped by flow-api-translator.
*/
export type THIRD_PARTY_LICENSE = any;
/**
* Encodes a number to base64 VLQ format and appends it to the passed-in buffer
*
* DON'T USE COMPOUND OPERATORS (eg `>>>=`) ON `let`-DECLARED VARIABLES!
* V8 WILL DEOPTIMIZE THIS FUNCTION AND MAP CREATION WILL BE 25% SLOWER!
*
* DON'T ADD MORE COMMENTS TO THIS FUNCTION TO KEEP ITS LENGTH SHORT ENOUGH FOR
* V8 OPTIMIZATION!
*/
declare function encode(value: number, buffer: Buffer, position: number): number;
export default encode;

1
node_modules/@expo/metro/metro-source-map/encode.js generated vendored Normal file
View File

@@ -0,0 +1 @@
module.exports = require("metro-source-map/private/encode");

View File

@@ -0,0 +1,18 @@
import type { FBSourceFunctionMap } from "./source-map";
import type { PluginObj } from "@babel/core";
import type { Node } from "@babel/types";
export interface Position {
line: number;
column: number;
}
export interface RangeMapping {
name: string;
start: Position;
}
export interface Context {
filename?: null | undefined | string;
}
declare function generateFunctionMap(ast: Node, context?: Context): FBSourceFunctionMap;
declare function generateFunctionMappingsArray(ast: Node, context?: Context): ReadonlyArray<RangeMapping>;
declare function functionMapBabelPlugin(): PluginObj;
export { functionMapBabelPlugin, generateFunctionMap, generateFunctionMappingsArray };

View File

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

1
node_modules/@expo/metro/metro-source-map/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1 @@
export * from "./source-map";

1
node_modules/@expo/metro/metro-source-map/index.js generated vendored Normal file
View File

@@ -0,0 +1 @@
module.exports = require("./source-map");

View File

@@ -0,0 +1,124 @@
/**
* 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 { IConsumer } from "./Consumer/types";
import { BundleBuilder, createIndexMap } from "./BundleBuilder";
import composeSourceMaps from "./composeSourceMaps";
import Consumer from "./Consumer";
import normalizeSourcePath from "./Consumer/normalizeSourcePath";
import { functionMapBabelPlugin, generateFunctionMap } from "./generateFunctionMap";
import Generator from "./Generator";
export type { IConsumer };
type GeneratedCodeMapping = [number, number];
type SourceMapping = [number, number, number, number];
type SourceMappingWithName = [number, number, number, number, string];
export type MetroSourceMapSegmentTuple = SourceMappingWithName | SourceMapping | GeneratedCodeMapping;
export interface HermesFunctionOffsets {
[$$Key$$: number]: ReadonlyArray<number>;
}
export type FBSourcesArray = ReadonlyArray<null | undefined | FBSourceMetadata>;
export type FBSourceMetadata = [null | undefined | FBSourceFunctionMap];
export interface FBSourceFunctionMap {
readonly names: ReadonlyArray<string>;
readonly mappings: string;
}
export interface _BabelSourceMapSegment_generated {
readonly column: number;
readonly line: number;
}
export interface _BabelSourceMapSegment_original {
readonly column: number;
readonly line: number;
}
export interface BabelSourceMapSegment {
readonly generated: _BabelSourceMapSegment_generated;
readonly original?: _BabelSourceMapSegment_original;
readonly source?: null | undefined | string;
readonly name?: null | undefined | string;
}
export interface FBSegmentMap {
[id: string]: MixedSourceMap;
}
export interface BasicSourceMap {
readonly file?: string;
readonly mappings: string;
readonly names: Array<string>;
readonly sourceRoot?: string;
readonly sources: Array<string>;
readonly sourcesContent?: Array<null | undefined | string>;
readonly version: number;
readonly x_facebook_offsets?: Array<number>;
readonly x_metro_module_paths?: Array<string>;
readonly x_facebook_sources?: FBSourcesArray;
readonly x_facebook_segments?: FBSegmentMap;
readonly x_hermes_function_offsets?: HermesFunctionOffsets;
readonly x_google_ignoreList?: Array<number>;
}
export interface _IndexMapSection_offset {
line: number;
column: number;
}
export interface IndexMapSection {
map?: IndexMap | BasicSourceMap;
offset: _IndexMapSection_offset;
}
export interface IndexMap {
readonly file?: string;
readonly mappings?: void;
readonly sourcesContent?: void;
readonly sections: Array<IndexMapSection>;
readonly version: number;
readonly x_facebook_offsets?: Array<number>;
readonly x_metro_module_paths?: Array<string>;
readonly x_facebook_sources?: void;
readonly x_facebook_segments?: FBSegmentMap;
readonly x_hermes_function_offsets?: HermesFunctionOffsets;
readonly x_google_ignoreList?: void;
}
export type MixedSourceMap = IndexMap | BasicSourceMap;
/**
* Creates a source map from modules with "raw mappings", i.e. an array of
* tuples with either 2, 4, or 5 elements:
* generated line, generated column, source line, source line, symbol name.
* Accepts an `offsetLines` argument in case modules' code is to be offset in
* the resulting bundle, e.g. by some prefix code.
*/
declare function fromRawMappings(modules: ReadonlyArray<{
readonly map?: null | ReadonlyArray<MetroSourceMapSegmentTuple>;
readonly functionMap?: null | FBSourceFunctionMap;
readonly path: string;
readonly source: string;
readonly code: string;
readonly isIgnored: boolean;
readonly lineCount?: number;
}>, offsetLines?: number): Generator;
declare function fromRawMappingsNonBlocking(modules: ReadonlyArray<{
readonly map?: null | ReadonlyArray<MetroSourceMapSegmentTuple>;
readonly functionMap?: null | FBSourceFunctionMap;
readonly path: string;
readonly source: string;
readonly code: string;
readonly isIgnored: boolean;
readonly lineCount?: number;
}>, offsetLines?: number): Promise<Generator>;
/**
* Transforms a standard source map object into a Raw Mappings object, to be
* used across the bundler.
*/
declare function toBabelSegments(sourceMap: BasicSourceMap): Array<any>;
declare function toSegmentTuple(mapping: any): MetroSourceMapSegmentTuple;
export { BundleBuilder, composeSourceMaps, Consumer, createIndexMap, generateFunctionMap, fromRawMappings, fromRawMappingsNonBlocking, functionMapBabelPlugin, normalizeSourcePath, toBabelSegments, toSegmentTuple };
/**
* Backwards-compatibility with CommonJS consumers using interopRequireDefault.
* Do not add to this list.
*
* @deprecated Default import from 'metro-source-map' is deprecated, use named exports.
*/

View File

@@ -0,0 +1 @@
module.exports = require("metro-source-map/private/source-map");