metro-source-map 0.83.3 → 0.84.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "metro-source-map",
3
- "version": "0.83.3",
3
+ "version": "0.84.0",
4
4
  "description": "🚇 Source map generator for Metro.",
5
5
  "main": "src/source-map.js",
6
6
  "exports": {
@@ -10,31 +10,31 @@
10
10
  },
11
11
  "repository": {
12
12
  "type": "git",
13
- "url": "git@github.com:facebook/metro.git"
13
+ "url": "git+https://github.com/facebook/metro.git",
14
+ "directory": "packages/metro-source-map"
14
15
  },
15
16
  "scripts": {
16
17
  "prepare-release": "test -d build && rm -rf src.real && mv src src.real && mv build src",
17
18
  "cleanup-release": "test ! -e build && mv src build && mv src.real src"
18
19
  },
19
20
  "dependencies": {
20
- "@babel/traverse": "^7.25.3",
21
- "@babel/traverse--for-generate-function-map": "npm:@babel/traverse@^7.25.3",
22
- "@babel/types": "^7.25.2",
21
+ "@babel/traverse": "^7.29.0",
22
+ "@babel/types": "^7.29.0",
23
23
  "flow-enums-runtime": "^0.0.6",
24
24
  "invariant": "^2.2.4",
25
- "metro-symbolicate": "0.83.3",
25
+ "metro-symbolicate": "0.84.0",
26
26
  "nullthrows": "^1.1.1",
27
- "ob1": "0.83.3",
27
+ "ob1": "0.84.0",
28
28
  "source-map": "^0.5.6",
29
29
  "vlq": "^1.0.0"
30
30
  },
31
31
  "license": "MIT",
32
32
  "devDependencies": {
33
33
  "@babel/core": "^7.25.2",
34
- "@babel/parser": "^7.25.3",
34
+ "@babel/parser": "^7.29.0",
35
35
  "terser": "^5.15.0"
36
36
  },
37
37
  "engines": {
38
- "node": ">=20.19.4"
38
+ "node": "^20.19.4 || ^22.13.0 || ^24.3.0 || >= 25.0.0"
39
39
  }
40
40
  }
@@ -13,8 +13,8 @@ import type {IndexMap, IndexMapSection, MixedSourceMap} from './source-map';
13
13
 
14
14
  const EMPTY_MAP = {
15
15
  version: 3,
16
- sources: ([]: Array<string>),
17
- names: ([]: Array<string>),
16
+ sources: [] as Array<string>,
17
+ names: [] as Array<string>,
18
18
  mappings: 'A',
19
19
  };
20
20
 
@@ -39,8 +39,8 @@ export default class AbstractConsumer implements IConsumer {
39
39
  }
40
40
 
41
41
  eachMapping(
42
- callback: (mapping: Mapping) => mixed,
43
- context?: mixed = null,
42
+ callback: (mapping: Mapping) => unknown,
43
+ context?: unknown = null,
44
44
  order?: IterationOrder = GENERATED_ORDER,
45
45
  ): void {
46
46
  invariant(
@@ -57,8 +57,8 @@ export default class DelegatingConsumer implements IConsumer {
57
57
  }
58
58
 
59
59
  eachMapping(
60
- callback: (mapping: Mapping) => mixed,
61
- context?: mixed,
60
+ callback: (mapping: Mapping) => unknown,
61
+ context?: unknown,
62
62
  order?: IterationOrder,
63
63
  ): void {
64
64
  return this._rootConsumer.eachMapping(callback, context, order);
@@ -41,8 +41,8 @@ export default class MappingsConsumer
41
41
  implements IConsumer
42
42
  {
43
43
  _sourceMap: BasicSourceMap;
44
- _decodedMappings: ?$ReadOnlyArray<Mapping>;
45
- _normalizedSources: ?$ReadOnlyArray<string>;
44
+ _decodedMappings: ?ReadonlyArray<Mapping>;
45
+ _normalizedSources: ?ReadonlyArray<string>;
46
46
 
47
47
  constructor(sourceMap: BasicSourceMap) {
48
48
  super(sourceMap);
@@ -175,7 +175,7 @@ export default class MappingsConsumer
175
175
  }
176
176
  }
177
177
 
178
- _normalizeAndCacheSources(): $ReadOnlyArray<string> {
178
+ _normalizeAndCacheSources(): ReadonlyArray<string> {
179
179
  if (!this._normalizedSources) {
180
180
  this._normalizedSources = this._sourceMap.sources.map(source =>
181
181
  normalizeSourcePath(source, this._sourceMap),
@@ -184,7 +184,7 @@ export default class MappingsConsumer
184
184
  return this._normalizedSources;
185
185
  }
186
186
 
187
- _decodeAndCacheMappings(): $ReadOnlyArray<Mapping> {
187
+ _decodeAndCacheMappings(): ReadonlyArray<Mapping> {
188
188
  if (!this._decodedMappings) {
189
189
  this._decodedMappings = [...this._decodeMappings()];
190
190
  }
@@ -33,7 +33,7 @@ export default class SectionsConsumer
33
33
  extends AbstractConsumer
34
34
  implements IConsumer
35
35
  {
36
- _consumers: $ReadOnlyArray<[GeneratedOffset, IConsumer]>;
36
+ _consumers: ReadonlyArray<[GeneratedOffset, IConsumer]>;
37
37
 
38
38
  constructor(sourceMap: IndexMap) {
39
39
  super(sourceMap);
@@ -24,7 +24,7 @@ export opaque type LookupBias = 'GREATEST_LOWER_BOUND' | 'LEAST_UPPER_BOUND';
24
24
  const GREATEST_LOWER_BOUND: LookupBias = 'GREATEST_LOWER_BOUND';
25
25
  const LEAST_UPPER_BOUND: LookupBias = 'LEAST_UPPER_BOUND';
26
26
 
27
- const EMPTY_POSITION: $ReadOnly<{
27
+ const EMPTY_POSITION: Readonly<{
28
28
  source: null,
29
29
  name: null,
30
30
  line: null,
@@ -18,7 +18,7 @@ import invariant from 'invariant';
18
18
 
19
19
  export default function createConsumer(sourceMap: MixedSourceMap): IConsumer {
20
20
  invariant(
21
- (sourceMap.version: mixed) === '3' || sourceMap.version === 3,
21
+ (sourceMap.version as unknown) === '3' || sourceMap.version === 3,
22
22
  `Unrecognized source map format version: ${sourceMap.version}`,
23
23
  );
24
24
 
@@ -10,7 +10,7 @@
10
10
  */
11
11
 
12
12
  export function greatestLowerBound<T, U>(
13
- elements: $ReadOnlyArray<T>,
13
+ elements: ReadonlyArray<T>,
14
14
  target: U,
15
15
  comparator: (U, T) => number,
16
16
  ): ?number {
@@ -33,7 +33,7 @@ export type GeneratedPositionLookup = {
33
33
  ...
34
34
  };
35
35
 
36
- export type Mapping = $ReadOnly<{
36
+ export type Mapping = Readonly<{
37
37
  source: ?string,
38
38
  generatedLine: Number1,
39
39
  generatedColumn: Number0,
@@ -51,8 +51,8 @@ export interface IConsumer {
51
51
  generatedMappings(): Iterable<Mapping>;
52
52
 
53
53
  eachMapping(
54
- callback: (mapping: Mapping) => mixed,
55
- context?: mixed,
54
+ callback: (mapping: Mapping) => unknown,
55
+ context?: unknown,
56
56
  order?: IterationOrder,
57
57
  ): void;
58
58
 
@@ -17,7 +17,7 @@ import type {
17
17
 
18
18
  import B64Builder from './B64Builder';
19
19
 
20
- type FileFlags = $ReadOnly<{
20
+ type FileFlags = Readonly<{
21
21
  addToIgnoreList?: boolean,
22
22
  }>;
23
23
 
@@ -199,7 +199,7 @@ export default class Generator {
199
199
  }
200
200
  : {};
201
201
 
202
- return ({
202
+ return {
203
203
  version: 3,
204
204
  file,
205
205
  sources: this.sources.slice(),
@@ -208,7 +208,7 @@ export default class Generator {
208
208
  ...ignoreList,
209
209
  names: this.names.items(),
210
210
  mappings: this.builder.toString(),
211
- }: BasicSourceMap);
211
+ } as BasicSourceMap;
212
212
  }
213
213
 
214
214
  /**
@@ -21,7 +21,7 @@ Consumer;
21
21
 
22
22
  // Originally based on https://github.com/jakobwesthoff/source-map-merger
23
23
  export default function composeSourceMaps(
24
- maps: $ReadOnlyArray<MixedSourceMap>,
24
+ maps: ReadonlyArray<MixedSourceMap>,
25
25
  ): MixedSourceMap {
26
26
  // NOTE: require() here to break dependency cycle
27
27
  const SourceMetadataMapConsumer =
@@ -93,7 +93,7 @@ export default function composeSourceMaps(
93
93
  }
94
94
 
95
95
  function findOriginalPosition(
96
- consumers: $ReadOnlyArray<IConsumer>,
96
+ consumers: ReadonlyArray<IConsumer>,
97
97
  generatedLine: Number1,
98
98
  generatedColumn: Number0,
99
99
  ): {
@@ -49,7 +49,7 @@
49
49
  * Associate this with the THIRD_PARTY_LICENCE type to ensure it isn't
50
50
  * stripped by flow-api-translator.
51
51
  */
52
- export type THIRD_PARTY_LICENSE = mixed;
52
+ export type THIRD_PARTY_LICENSE = unknown;
53
53
 
54
54
  /* eslint-disable no-bitwise */
55
55
 
@@ -7,36 +7,38 @@ exports.functionMapBabelPlugin = functionMapBabelPlugin;
7
7
  exports.generateFunctionMap = generateFunctionMap;
8
8
  exports.generateFunctionMappingsArray = generateFunctionMappingsArray;
9
9
  var _B64Builder = _interopRequireDefault(require("./B64Builder"));
10
- var _traverseForGenerateFunctionMap = _interopRequireDefault(
11
- require("@babel/traverse--for-generate-function-map"),
12
- );
10
+ var _traverse = _interopRequireDefault(require("@babel/traverse"));
13
11
  var _types = _interopRequireWildcard(require("@babel/types"));
14
12
  var t = _types;
15
13
  var _invariant = _interopRequireDefault(require("invariant"));
16
14
  var _nullthrows = _interopRequireDefault(require("nullthrows"));
17
15
  var _path = _interopRequireDefault(require("path"));
18
- function _getRequireWildcardCache(e) {
19
- if ("function" != typeof WeakMap) return null;
20
- var r = new WeakMap(),
21
- t = new WeakMap();
22
- return (_getRequireWildcardCache = function (e) {
23
- return e ? t : r;
24
- })(e);
25
- }
26
- function _interopRequireWildcard(e, r) {
27
- if (!r && e && e.__esModule) return e;
28
- if (null === e || ("object" != typeof e && "function" != typeof e))
29
- return { default: e };
30
- var t = _getRequireWildcardCache(r);
31
- if (t && t.has(e)) return t.get(e);
32
- var n = { __proto__: null },
33
- a = Object.defineProperty && Object.getOwnPropertyDescriptor;
34
- for (var u in e)
35
- if ("default" !== u && {}.hasOwnProperty.call(e, u)) {
36
- var i = a ? Object.getOwnPropertyDescriptor(e, u) : null;
37
- i && (i.get || i.set) ? Object.defineProperty(n, u, i) : (n[u] = e[u]);
16
+ function _interopRequireWildcard(e, t) {
17
+ if ("function" == typeof WeakMap)
18
+ var r = new WeakMap(),
19
+ n = new WeakMap();
20
+ return (_interopRequireWildcard = function (e, t) {
21
+ if (!t && e && e.__esModule) return e;
22
+ var o,
23
+ i,
24
+ f = { __proto__: null, default: e };
25
+ if (null === e || ("object" != typeof e && "function" != typeof e))
26
+ return f;
27
+ if ((o = t ? n : r)) {
28
+ if (o.has(e)) return o.get(e);
29
+ o.set(e, f);
38
30
  }
39
- return ((n.default = e), t && t.set(e, n), n);
31
+ for (const t in e)
32
+ "default" !== t &&
33
+ {}.hasOwnProperty.call(e, t) &&
34
+ ((i =
35
+ (o = Object.defineProperty) &&
36
+ Object.getOwnPropertyDescriptor(e, t)) &&
37
+ (i.get || i.set)
38
+ ? o(f, t, i)
39
+ : (f[t] = e[t]));
40
+ return f;
41
+ })(e, t);
40
42
  }
41
43
  function _interopRequireDefault(e) {
42
44
  return e && e.__esModule ? e : { default: e };
@@ -147,7 +149,7 @@ function getFunctionMapVisitor(context, pushMapping) {
147
149
  }
148
150
  function forEachMapping(ast, context, pushMapping) {
149
151
  const visitor = getFunctionMapVisitor(context, pushMapping);
150
- (0, _traverseForGenerateFunctionMap.default)(ast, {
152
+ (0, _traverse.default)(ast, {
151
153
  noScope: true,
152
154
  Function: visitor,
153
155
  Program: visitor,
@@ -16,8 +16,7 @@ import type {Node as BabelNode} from '@babel/types';
16
16
  import type {MetroBabelFileMetadata} from 'metro-babel-transformer';
17
17
 
18
18
  import B64Builder from './B64Builder';
19
- // $FlowFixMe[cannot-resolve-module] - resolves to @babel/traverse
20
- import traverseForGenerateFunctionMap from '@babel/traverse--for-generate-function-map';
19
+ import traverse from '@babel/traverse';
21
20
  import * as t from '@babel/types';
22
21
  import {
23
22
  isAssignmentExpression,
@@ -98,7 +97,7 @@ function generateFunctionMap(
98
97
  function generateFunctionMappingsArray(
99
98
  ast: BabelNode,
100
99
  context?: Context,
101
- ): $ReadOnlyArray<RangeMapping> {
100
+ ): ReadonlyArray<RangeMapping> {
102
101
  const mappings = [];
103
102
  forEachMapping(ast, context, mapping => {
104
103
  mappings.push(mapping);
@@ -218,11 +217,7 @@ function forEachMapping(
218
217
  ) {
219
218
  const visitor = getFunctionMapVisitor(context, pushMapping);
220
219
 
221
- // Traversing populates/pollutes the path cache (`traverse.cache.path`) with
222
- // values missing the `hub` property needed by Babel transformation, so we
223
- // use a separate copy of traverse to populate a separate cache to not pollute
224
- // the main @babel/traverse cache. See: https://github.com/facebook/metro/pull/1340
225
- traverseForGenerateFunctionMap(ast, {
220
+ traverse(ast, {
226
221
  // Our visitor doesn't care about scope
227
222
  noScope: true,
228
223
 
@@ -416,7 +411,7 @@ function getNameFromId(id: BabelNode): ?string {
416
411
  return parts.join('.');
417
412
  }
418
413
 
419
- function getNamePartsFromId(id: BabelNode): $ReadOnlyArray<string> {
414
+ function getNamePartsFromId(id: BabelNode): ReadonlyArray<string> {
420
415
  if (!id) {
421
416
  return [];
422
417
  }
@@ -35,18 +35,18 @@ export type MetroSourceMapSegmentTuple =
35
35
  | SourceMapping
36
36
  | GeneratedCodeMapping;
37
37
 
38
- export type HermesFunctionOffsets = {[number]: $ReadOnlyArray<number>, ...};
38
+ export type HermesFunctionOffsets = {[number]: ReadonlyArray<number>, ...};
39
39
 
40
- export type FBSourcesArray = $ReadOnlyArray<?FBSourceMetadata>;
40
+ export type FBSourcesArray = ReadonlyArray<?FBSourceMetadata>;
41
41
  export type FBSourceMetadata = [?FBSourceFunctionMap];
42
42
  export type FBSourceFunctionMap = {
43
- +names: $ReadOnlyArray<string>,
43
+ +names: ReadonlyArray<string>,
44
44
  +mappings: string,
45
45
  };
46
46
 
47
- export type BabelSourceMapSegment = $ReadOnly<{
48
- generated: $ReadOnly<{column: number, line: number, ...}>,
49
- original?: $ReadOnly<{column: number, line: number, ...}>,
47
+ export type BabelSourceMapSegment = Readonly<{
48
+ generated: Readonly<{column: number, line: number, ...}>,
49
+ original?: Readonly<{column: number, line: number, ...}>,
50
50
  source?: ?string,
51
51
  name?: ?string,
52
52
  ...
@@ -108,8 +108,8 @@ type SourceMapConsumerMapping = {
108
108
  function fromRawMappingsImpl(
109
109
  isBlocking: boolean,
110
110
  onDone: Generator => void,
111
- modules: $ReadOnlyArray<{
112
- +map: ?$ReadOnlyArray<MetroSourceMapSegmentTuple>,
111
+ modules: ReadonlyArray<{
112
+ +map: ?ReadonlyArray<MetroSourceMapSegmentTuple>,
113
113
  +functionMap: ?FBSourceFunctionMap,
114
114
  +path: string,
115
115
  +source: string,
@@ -179,8 +179,8 @@ function fromRawMappingsImpl(
179
179
  * the resulting bundle, e.g. by some prefix code.
180
180
  */
181
181
  function fromRawMappings(
182
- modules: $ReadOnlyArray<{
183
- +map: ?$ReadOnlyArray<MetroSourceMapSegmentTuple>,
182
+ modules: ReadonlyArray<{
183
+ +map: ?ReadonlyArray<MetroSourceMapSegmentTuple>,
184
184
  +functionMap: ?FBSourceFunctionMap,
185
185
  +path: string,
186
186
  +source: string,
@@ -206,8 +206,8 @@ function fromRawMappings(
206
206
  }
207
207
 
208
208
  async function fromRawMappingsNonBlocking(
209
- modules: $ReadOnlyArray<{
210
- +map: ?$ReadOnlyArray<MetroSourceMapSegmentTuple>,
209
+ modules: ReadonlyArray<{
210
+ +map: ?ReadonlyArray<MetroSourceMapSegmentTuple>,
211
211
  +functionMap: ?FBSourceFunctionMap,
212
212
  +path: string,
213
213
  +source: string,
@@ -1,47 +0,0 @@
1
- /**
2
- * Copyright (c) Meta Platforms, Inc. and affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- * @format
8
- * @oncall react_native
9
- */
10
-
11
- /**
12
- * Efficient builder for base64 VLQ mappings strings.
13
- *
14
- * This class uses a buffer that is preallocated with one megabyte and is
15
- * reallocated dynamically as needed, doubling its size.
16
- *
17
- * Encoding never creates any complex value types (strings, objects), and only
18
- * writes character values to the buffer.
19
- *
20
- * For details about source map terminology and specification, check
21
- * https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit
22
- */
23
- declare class B64Builder {
24
- buffer: Buffer;
25
- pos: number;
26
- hasSegment: boolean;
27
- constructor();
28
- /**
29
- * Adds `n` markers for generated lines to the mappings.
30
- */
31
- markLines(n: number): this;
32
- /**
33
- * Starts a segment at the specified column offset in the current line.
34
- */
35
- startSegment(column: number): this;
36
- /**
37
- * Appends a single number to the mappings.
38
- */
39
- append(value: number): this;
40
- /**
41
- * Returns the string representation of the mappings.
42
- */
43
- toString(): string;
44
- _writeByte(byte: number): void;
45
- _realloc(): void;
46
- }
47
- export default B64Builder;
@@ -1,43 +0,0 @@
1
- /**
2
- * Copyright (c) Meta Platforms, Inc. and affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- * @format
8
- * @oncall react_native
9
- */
10
-
11
- import type {IndexMap, IndexMapSection, MixedSourceMap} from './source-map';
12
- /**
13
- * Builds a source-mapped bundle by concatenating strings and their
14
- * corresponding source maps (if any).
15
- *
16
- * Usage:
17
- *
18
- * const builder = new BundleBuilder('bundle.js');
19
- * builder
20
- * .append('foo\n', fooMap)
21
- * .append('bar\n')
22
- * // ...
23
- * const code = builder.getCode();
24
- * const map = builder.getMap();
25
- */
26
- export declare class BundleBuilder {
27
- _file: string;
28
- _sections: Array<IndexMapSection>;
29
- _line: number;
30
- _column: number;
31
- _code: string;
32
- _afterMappedContent: boolean;
33
- constructor(file: string);
34
- _pushMapSection(map: MixedSourceMap): void;
35
- _endMappedContent(): void;
36
- append(code: string, map: null | undefined | MixedSourceMap): this;
37
- getMap(): MixedSourceMap;
38
- getCode(): string;
39
- }
40
- export declare function createIndexMap(
41
- file: string,
42
- sections: Array<IndexMapSection>,
43
- ): IndexMap;
@@ -1,37 +0,0 @@
1
- /**
2
- * Copyright (c) Meta Platforms, Inc. and affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- * @format
8
- * @oncall react_native
9
- */
10
-
11
- import type {
12
- GeneratedPositionLookup,
13
- IConsumer,
14
- IterationOrder,
15
- Mapping,
16
- SourcePosition,
17
- } from './types';
18
-
19
- declare class AbstractConsumer implements IConsumer {
20
- _sourceMap: {readonly file?: string};
21
- constructor(sourceMap: {readonly file?: string});
22
- originalPositionFor(
23
- generatedPosition: GeneratedPositionLookup,
24
- ): SourcePosition;
25
- generatedMappings(): Iterable<Mapping>;
26
- eachMapping(
27
- callback: (mapping: Mapping) => unknown,
28
- context?: unknown,
29
- order?: IterationOrder,
30
- ): void;
31
- get file(): null | undefined | string;
32
- sourceContentFor(
33
- source: string,
34
- nullOnMissing: true,
35
- ): null | undefined | string;
36
- }
37
- export default AbstractConsumer;
@@ -1,47 +0,0 @@
1
- /**
2
- * Copyright (c) Meta Platforms, Inc. and affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- * @format
8
- * @oncall react_native
9
- */
10
-
11
- import type {MixedSourceMap} from '../source-map';
12
- import type {LookupBias} from './constants.js';
13
- import type {
14
- GeneratedPositionLookup,
15
- IConsumer,
16
- IterationOrder,
17
- Mapping,
18
- SourcePosition,
19
- } from './types';
20
- /**
21
- * A source map consumer that supports both "basic" and "indexed" source maps.
22
- * Uses `MappingsConsumer` and `SectionsConsumer` under the hood (via
23
- * `createConsumer`).
24
- */
25
- declare class DelegatingConsumer implements IConsumer {
26
- static readonly GENERATED_ORDER: IterationOrder;
27
- static readonly ORIGINAL_ORDER: IterationOrder;
28
- static readonly GREATEST_LOWER_BOUND: LookupBias;
29
- static readonly LEAST_UPPER_BOUND: LookupBias;
30
- _rootConsumer: IConsumer;
31
- constructor(sourceMap: MixedSourceMap);
32
- originalPositionFor(
33
- generatedPosition: GeneratedPositionLookup,
34
- ): SourcePosition;
35
- generatedMappings(): Iterable<Mapping>;
36
- eachMapping(
37
- callback: (mapping: Mapping) => unknown,
38
- context?: unknown,
39
- order?: IterationOrder,
40
- ): void;
41
- get file(): null | undefined | string;
42
- sourceContentFor(
43
- source: string,
44
- nullOnMissing: true,
45
- ): null | undefined | string;
46
- }
47
- export default DelegatingConsumer;
@@ -1,43 +0,0 @@
1
- /**
2
- * Copyright (c) Meta Platforms, Inc. and affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- * @format
8
- * @oncall react_native
9
- */
10
-
11
- import type {BasicSourceMap} from '../source-map';
12
- import type {
13
- GeneratedPositionLookup,
14
- IConsumer,
15
- Mapping,
16
- SourcePosition,
17
- } from './types';
18
- import type {Number0} from 'ob1';
19
-
20
- import AbstractConsumer from './AbstractConsumer';
21
- /**
22
- * A source map consumer that supports "basic" source maps (that have a
23
- * `mappings` field and no sections).
24
- */
25
- declare class MappingsConsumer extends AbstractConsumer implements IConsumer {
26
- _sourceMap: BasicSourceMap;
27
- _decodedMappings: null | undefined | ReadonlyArray<Mapping>;
28
- _normalizedSources: null | undefined | ReadonlyArray<string>;
29
- constructor(sourceMap: BasicSourceMap);
30
- originalPositionFor(
31
- generatedPosition: GeneratedPositionLookup,
32
- ): SourcePosition;
33
- _decodeMappings(): Generator<Mapping, void, void>;
34
- _normalizeAndCacheSources(): ReadonlyArray<string>;
35
- _decodeAndCacheMappings(): ReadonlyArray<Mapping>;
36
- generatedMappings(): Iterable<Mapping>;
37
- _indexOfSource(source: string): null | undefined | Number0;
38
- sourceContentFor(
39
- source: string,
40
- nullOnMissing: true,
41
- ): null | undefined | string;
42
- }
43
- export default MappingsConsumer;
@@ -1,40 +0,0 @@
1
- /**
2
- * Copyright (c) Meta Platforms, Inc. and affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- * @format
8
- * @oncall react_native
9
- */
10
-
11
- import type {IndexMap} from '../source-map';
12
- import type {
13
- GeneratedOffset,
14
- GeneratedPositionLookup,
15
- IConsumer,
16
- Mapping,
17
- SourcePosition,
18
- } from './types';
19
-
20
- import AbstractConsumer from './AbstractConsumer';
21
- /**
22
- * A source map consumer that supports "indexed" source maps (that have a
23
- * `sections` field and no top-level mappings).
24
- */
25
- declare class SectionsConsumer extends AbstractConsumer implements IConsumer {
26
- _consumers: ReadonlyArray<[GeneratedOffset, IConsumer]>;
27
- constructor(sourceMap: IndexMap);
28
- originalPositionFor(
29
- generatedPosition: GeneratedPositionLookup,
30
- ): SourcePosition;
31
- generatedMappings(): Iterable<Mapping>;
32
- _consumerForPosition(
33
- generatedPosition: GeneratedPositionLookup,
34
- ): null | undefined | [GeneratedOffset, IConsumer];
35
- sourceContentFor(
36
- source: string,
37
- nullOnMissing: true,
38
- ): null | undefined | string;
39
- }
40
- export default SectionsConsumer;
@@ -1,39 +0,0 @@
1
- /**
2
- * Copyright (c) Meta Platforms, Inc. and affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- * @format
8
- * @oncall react_native
9
- */
10
-
11
- import type {Number0, Number1} from 'ob1';
12
-
13
- declare const FIRST_COLUMN: Number0;
14
- declare const FIRST_LINE: Number1;
15
- export declare type IterationOrder = symbol & {__IterationOrder__: string};
16
- declare const GENERATED_ORDER: IterationOrder;
17
- declare const ORIGINAL_ORDER: IterationOrder;
18
- export declare type LookupBias = symbol & {__LookupBias__: string};
19
- declare const GREATEST_LOWER_BOUND: LookupBias;
20
- declare const LEAST_UPPER_BOUND: LookupBias;
21
- declare const EMPTY_POSITION: Readonly<{
22
- source: null;
23
- name: null;
24
- line: null;
25
- column: null;
26
- }>;
27
- declare function iterationOrderToString(x: IterationOrder): string;
28
- declare function lookupBiasToString(x: LookupBias): string;
29
- export {
30
- FIRST_COLUMN,
31
- FIRST_LINE,
32
- GENERATED_ORDER,
33
- ORIGINAL_ORDER,
34
- GREATEST_LOWER_BOUND,
35
- LEAST_UPPER_BOUND,
36
- EMPTY_POSITION,
37
- iterationOrderToString,
38
- lookupBiasToString,
39
- };
@@ -1,15 +0,0 @@
1
- /**
2
- * Copyright (c) Meta Platforms, Inc. and affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- * @format
8
- * @oncall react_native
9
- */
10
-
11
- import type {MixedSourceMap} from '../source-map';
12
- import type {IConsumer} from './types';
13
-
14
- declare function createConsumer(sourceMap: MixedSourceMap): IConsumer;
15
- export default createConsumer;
@@ -1,16 +0,0 @@
1
- /**
2
- * Copyright (c) Meta Platforms, Inc. and affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- * @format
8
- * @oncall react_native
9
- */
10
-
11
- import DelegatingConsumer from './DelegatingConsumer';
12
-
13
- declare const $$EXPORT_DEFAULT_DECLARATION$$: typeof DelegatingConsumer;
14
- declare type $$EXPORT_DEFAULT_DECLARATION$$ =
15
- typeof $$EXPORT_DEFAULT_DECLARATION$$;
16
- export default $$EXPORT_DEFAULT_DECLARATION$$;
@@ -1,15 +0,0 @@
1
- /**
2
- * Copyright (c) Meta Platforms, Inc. and affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- * @format
8
- * @oncall react_native
9
- */
10
-
11
- declare function normalizeSourcePath(
12
- sourceInput: string,
13
- map: {readonly sourceRoot?: null | undefined | string},
14
- ): string;
15
- export default normalizeSourcePath;
@@ -1,25 +0,0 @@
1
- /**
2
- * Copyright (c) Meta Platforms, Inc. and affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- * @format
8
- * @oncall react_native
9
- */
10
-
11
- import type {GeneratedOffset} from './types';
12
- import type {Number0, Number1} from 'ob1';
13
-
14
- export declare function shiftPositionByOffset<
15
- T extends {
16
- readonly line: null | undefined | Number1;
17
- readonly column: null | undefined | Number0;
18
- },
19
- >(pos: T, offset: GeneratedOffset): T;
20
- export declare function subtractOffsetFromPosition<
21
- T extends {
22
- readonly line: null | undefined | Number1;
23
- readonly column: null | undefined | Number0;
24
- },
25
- >(pos: T, offset: GeneratedOffset): T;
@@ -1,15 +0,0 @@
1
- /**
2
- * Copyright (c) Meta Platforms, Inc. and affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- * @format
8
- * @oncall react_native
9
- */
10
-
11
- export declare function greatestLowerBound<T, U>(
12
- elements: ReadonlyArray<T>,
13
- target: U,
14
- comparator: ($$PARAM_0$$: U, $$PARAM_1$$: T) => number,
15
- ): null | undefined | number;
@@ -1,57 +0,0 @@
1
- /**
2
- * Copyright (c) Meta Platforms, Inc. and affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- * @format
8
- * @oncall react_native
9
- */
10
-
11
- import type {IterationOrder, LookupBias} from './constants';
12
- import type {Number0, Number1} from 'ob1';
13
-
14
- export type {IterationOrder, LookupBias};
15
- export type GeneratedOffset = {
16
- readonly lines: Number0;
17
- readonly columns: Number0;
18
- };
19
- export type SourcePosition = {
20
- source: null | undefined | string;
21
- line: null | undefined | Number1;
22
- column: null | undefined | Number0;
23
- name: null | undefined | string;
24
- };
25
- export type GeneratedPosition = {
26
- readonly line: Number1;
27
- readonly column: Number0;
28
- };
29
- export type GeneratedPositionLookup = {
30
- readonly line: null | undefined | Number1;
31
- readonly column: null | undefined | Number0;
32
- readonly bias?: LookupBias;
33
- };
34
- export type Mapping = Readonly<{
35
- source: null | undefined | string;
36
- generatedLine: Number1;
37
- generatedColumn: Number0;
38
- originalLine: null | undefined | Number1;
39
- originalColumn: null | undefined | Number0;
40
- name: null | undefined | string;
41
- }>;
42
- export interface IConsumer {
43
- originalPositionFor(
44
- generatedPosition: GeneratedPositionLookup,
45
- ): SourcePosition;
46
- generatedMappings(): Iterable<Mapping>;
47
- eachMapping(
48
- callback: (mapping: Mapping) => unknown,
49
- context?: unknown,
50
- order?: IterationOrder,
51
- ): void;
52
- get file(): null | undefined | string;
53
- sourceContentFor(
54
- source: string,
55
- nullOnMissing: true,
56
- ): null | undefined | string;
57
- }
@@ -1,107 +0,0 @@
1
- /**
2
- * Copyright (c) Meta Platforms, Inc. and affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- * @format
8
- * @oncall react_native
9
- */
10
-
11
- import type {
12
- BasicSourceMap,
13
- FBSourceFunctionMap,
14
- FBSourceMetadata,
15
- } from './source-map';
16
-
17
- import B64Builder from './B64Builder';
18
-
19
- type FileFlags = Readonly<{addToIgnoreList?: boolean}>;
20
- /**
21
- * Generates a source map from raw mappings.
22
- *
23
- * Raw mappings are a set of 2, 4, or five elements:
24
- *
25
- * - line and column number in the generated source
26
- * - line and column number in the original source
27
- * - symbol name in the original source
28
- *
29
- * Mappings have to be passed in the order appearance in the generated source.
30
- */
31
- declare class Generator {
32
- builder: B64Builder;
33
- last: {
34
- generatedColumn: number;
35
- generatedLine: number;
36
- name: number;
37
- source: number;
38
- sourceColumn: number;
39
- sourceLine: number;
40
- };
41
- names: IndexedSet;
42
- source: number;
43
- sources: Array<string>;
44
- sourcesContent: Array<null | undefined | string>;
45
- x_facebook_sources: Array<null | undefined | FBSourceMetadata>;
46
- x_google_ignoreList: Array<number>;
47
- constructor();
48
- /**
49
- * Mark the beginning of a new source file.
50
- */
51
- startFile(
52
- file: string,
53
- code: string,
54
- functionMap: null | undefined | FBSourceFunctionMap,
55
- flags?: FileFlags,
56
- ): void;
57
- /**
58
- * Mark the end of the current source file
59
- */
60
- endFile(): void;
61
- /**
62
- * Adds a mapping for generated code without a corresponding source location.
63
- */
64
- addSimpleMapping(generatedLine: number, generatedColumn: number): void;
65
- /**
66
- * Adds a mapping for generated code with a corresponding source location.
67
- */
68
- addSourceMapping(
69
- generatedLine: number,
70
- generatedColumn: number,
71
- sourceLine: number,
72
- sourceColumn: number,
73
- ): void;
74
- /**
75
- * Adds a mapping for code with a corresponding source location + symbol name.
76
- */
77
- addNamedSourceMapping(
78
- generatedLine: number,
79
- generatedColumn: number,
80
- sourceLine: number,
81
- sourceColumn: number,
82
- name: string,
83
- ): void;
84
- /**
85
- * Return the source map as object.
86
- */
87
- toMap(file?: string, options?: {excludeSource?: boolean}): BasicSourceMap;
88
- /**
89
- * Return the source map as string.
90
- *
91
- * This is ~2.5x faster than calling `JSON.stringify(generator.toMap())`
92
- */
93
- toString(file?: string, options?: {excludeSource?: boolean}): string;
94
- /**
95
- * Determine whether we need to write the `x_facebook_sources` field.
96
- * If the metadata is all `null`s, we can omit the field entirely.
97
- */
98
- hasSourcesMetadata(): boolean;
99
- }
100
- export default Generator;
101
- declare class IndexedSet {
102
- map: Map<string, number>;
103
- nextIndex: number;
104
- constructor();
105
- indexFor(x: string): number;
106
- items(): Array<string>;
107
- }
@@ -1,16 +0,0 @@
1
- /**
2
- * Copyright (c) Meta Platforms, Inc. and affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- * @format
8
- * @oncall react_native
9
- */
10
-
11
- import type {MixedSourceMap} from './source-map';
12
-
13
- declare function composeSourceMaps(
14
- maps: ReadonlyArray<MixedSourceMap>,
15
- ): MixedSourceMap;
16
- export default composeSourceMaps;
package/src/encode.d.ts DELETED
@@ -1,66 +0,0 @@
1
- /**
2
- * Portions Copyright (c) Meta Platforms, Inc. and affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- * @format
8
- * @oncall react_native
9
- */
10
-
11
- /**
12
- * Copyright 2011 Mozilla Foundation and contributors
13
- * Licensed under the New BSD license. See LICENSE or:
14
- * http://opensource.org/licenses/BSD-3-Clause
15
- *
16
- * Based on the Base 64 VLQ implementation in Closure Compiler:
17
- * https://git.io/vymuA
18
- *
19
- * Copyright 2011 The Closure Compiler Authors. All rights reserved.
20
- * Redistribution and use in source and binary forms, with or without
21
- * modification, are permitted provided that the following conditions are
22
- * met:
23
- *
24
- * * Redistributions of source code must retain the above copyright
25
- * notice, this list of conditions and the following disclaimer.
26
- * * Redistributions in binary form must reproduce the above
27
- * copyright notice, this list of conditions and the following
28
- * disclaimer in the documentation and/or other materials provided
29
- * with the distribution.
30
- * * Neither the name of Google Inc. nor the names of its
31
- * contributors may be used to endorse or promote products derived
32
- * from this software without specific prior written permission.
33
- *
34
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
35
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
36
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
37
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
38
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
39
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
40
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
41
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
42
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
43
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
44
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
45
- *
46
- * @copyright
47
- *
48
- * Associate this with the THIRD_PARTY_LICENCE type to ensure it isn't
49
- * stripped by flow-api-translator.
50
- */
51
- export type THIRD_PARTY_LICENSE = unknown;
52
- /**
53
- * Encodes a number to base64 VLQ format and appends it to the passed-in buffer
54
- *
55
- * DON'T USE COMPOUND OPERATORS (eg `>>>=`) ON `let`-DECLARED VARIABLES!
56
- * V8 WILL DEOPTIMIZE THIS FUNCTION AND MAP CREATION WILL BE 25% SLOWER!
57
- *
58
- * DON'T ADD MORE COMMENTS TO THIS FUNCTION TO KEEP ITS LENGTH SHORT ENOUGH FOR
59
- * V8 OPTIMIZATION!
60
- */
61
- declare function encode(
62
- value: number,
63
- buffer: Buffer,
64
- position: number,
65
- ): number;
66
- export default encode;
@@ -1,45 +0,0 @@
1
- /**
2
- * Copyright (c) Meta Platforms, Inc. and affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- * @format
8
- * @oncall react_native
9
- */
10
-
11
- import type {FBSourceFunctionMap} from './source-map';
12
- import type {PluginObj} from '@babel/core';
13
- import type {Node as BabelNode} from '@babel/types';
14
-
15
- type Position = {line: number; column: number};
16
- type RangeMapping = {name: string; start: Position};
17
- export type Context = {filename?: null | undefined | string};
18
- /**
19
- * Generate a map of source positions to function names. The names are meant to
20
- * describe the stack frame in an error trace and may contain more contextual
21
- * information than just the actual name of the function.
22
- *
23
- * The output is encoded for use in a source map. For details about the format,
24
- * see MappingEncoder below.
25
- */
26
- declare function generateFunctionMap(
27
- ast: BabelNode,
28
- context?: Context,
29
- ): FBSourceFunctionMap;
30
- /**
31
- * Same as generateFunctionMap, but returns the raw array of mappings instead
32
- * of encoding it for use in a source map.
33
- *
34
- * Lines are 1-based and columns are 0-based.
35
- */
36
- declare function generateFunctionMappingsArray(
37
- ast: BabelNode,
38
- context?: Context,
39
- ): ReadonlyArray<RangeMapping>;
40
- declare function functionMapBabelPlugin(): PluginObj;
41
- export {
42
- functionMapBabelPlugin,
43
- generateFunctionMap,
44
- generateFunctionMappingsArray,
45
- };
@@ -1,155 +0,0 @@
1
- /**
2
- * Copyright (c) Meta Platforms, Inc. and affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- * @format
8
- * @oncall react_native
9
- */
10
-
11
- import type {IConsumer} from './Consumer/types';
12
-
13
- import {BundleBuilder, createIndexMap} from './BundleBuilder';
14
- import composeSourceMaps from './composeSourceMaps';
15
- import Consumer from './Consumer';
16
- import normalizeSourcePath from './Consumer/normalizeSourcePath';
17
- import {
18
- functionMapBabelPlugin,
19
- generateFunctionMap,
20
- } from './generateFunctionMap';
21
- import Generator from './Generator';
22
-
23
- export type {IConsumer};
24
- type GeneratedCodeMapping = [number, number];
25
- type SourceMapping = [number, number, number, number];
26
- type SourceMappingWithName = [number, number, number, number, string];
27
- export type MetroSourceMapSegmentTuple =
28
- | SourceMappingWithName
29
- | SourceMapping
30
- | GeneratedCodeMapping;
31
- export type HermesFunctionOffsets = {
32
- [$$Key$$: number]: ReadonlyArray<number>;
33
- };
34
- export type FBSourcesArray = ReadonlyArray<null | undefined | FBSourceMetadata>;
35
- export type FBSourceMetadata = [null | undefined | FBSourceFunctionMap];
36
- export type FBSourceFunctionMap = {
37
- readonly names: ReadonlyArray<string>;
38
- readonly mappings: string;
39
- };
40
- export type BabelSourceMapSegment = Readonly<{
41
- generated: Readonly<{column: number; line: number}>;
42
- original?: Readonly<{column: number; line: number}>;
43
- source?: null | undefined | string;
44
- name?: null | undefined | string;
45
- }>;
46
- export type FBSegmentMap = {[id: string]: MixedSourceMap};
47
- export type BasicSourceMap = {
48
- readonly file?: string;
49
- readonly mappings: string;
50
- readonly names: Array<string>;
51
- readonly sourceRoot?: string;
52
- readonly sources: Array<string>;
53
- readonly sourcesContent?: Array<null | undefined | string>;
54
- readonly version: number;
55
- readonly x_facebook_offsets?: Array<number>;
56
- readonly x_metro_module_paths?: Array<string>;
57
- readonly x_facebook_sources?: FBSourcesArray;
58
- readonly x_facebook_segments?: FBSegmentMap;
59
- readonly x_hermes_function_offsets?: HermesFunctionOffsets;
60
- readonly x_google_ignoreList?: Array<number>;
61
- };
62
- export type IndexMapSection = {
63
- map: IndexMap | BasicSourceMap;
64
- offset: {line: number; column: number};
65
- };
66
- export type IndexMap = {
67
- readonly file?: string;
68
- readonly mappings?: void;
69
- readonly sourcesContent?: void;
70
- readonly sections: Array<IndexMapSection>;
71
- readonly version: number;
72
- readonly x_facebook_offsets?: Array<number>;
73
- readonly x_metro_module_paths?: Array<string>;
74
- readonly x_facebook_sources?: void;
75
- readonly x_facebook_segments?: FBSegmentMap;
76
- readonly x_hermes_function_offsets?: HermesFunctionOffsets;
77
- readonly x_google_ignoreList?: void;
78
- };
79
- export type MixedSourceMap = IndexMap | BasicSourceMap;
80
- /**
81
- * Creates a source map from modules with "raw mappings", i.e. an array of
82
- * tuples with either 2, 4, or 5 elements:
83
- * generated line, generated column, source line, source line, symbol name.
84
- * Accepts an `offsetLines` argument in case modules' code is to be offset in
85
- * the resulting bundle, e.g. by some prefix code.
86
- */
87
- declare function fromRawMappings(
88
- modules: ReadonlyArray<{
89
- readonly map: null | undefined | ReadonlyArray<MetroSourceMapSegmentTuple>;
90
- readonly functionMap: null | undefined | FBSourceFunctionMap;
91
- readonly path: string;
92
- readonly source: string;
93
- readonly code: string;
94
- readonly isIgnored: boolean;
95
- readonly lineCount?: number;
96
- }>,
97
- offsetLines?: number,
98
- ): Generator;
99
- declare function fromRawMappingsNonBlocking(
100
- modules: ReadonlyArray<{
101
- readonly map: null | undefined | ReadonlyArray<MetroSourceMapSegmentTuple>;
102
- readonly functionMap: null | undefined | FBSourceFunctionMap;
103
- readonly path: string;
104
- readonly source: string;
105
- readonly code: string;
106
- readonly isIgnored: boolean;
107
- readonly lineCount?: number;
108
- }>,
109
- offsetLines?: number,
110
- ): Promise<Generator>;
111
- /**
112
- * Transforms a standard source map object into a Raw Mappings object, to be
113
- * used across the bundler.
114
- */
115
- declare function toBabelSegments(
116
- sourceMap: BasicSourceMap,
117
- ): Array<BabelSourceMapSegment>;
118
- declare function toSegmentTuple(
119
- mapping: BabelSourceMapSegment,
120
- ): MetroSourceMapSegmentTuple;
121
- export {
122
- BundleBuilder,
123
- composeSourceMaps,
124
- Consumer,
125
- createIndexMap,
126
- generateFunctionMap,
127
- fromRawMappings,
128
- fromRawMappingsNonBlocking,
129
- functionMapBabelPlugin,
130
- normalizeSourcePath,
131
- toBabelSegments,
132
- toSegmentTuple,
133
- };
134
- /**
135
- * Backwards-compatibility with CommonJS consumers using interopRequireDefault.
136
- * Do not add to this list.
137
- *
138
- * @deprecated Default import from 'metro-source-map' is deprecated, use named exports.
139
- */
140
- declare const $$EXPORT_DEFAULT_DECLARATION$$: {
141
- BundleBuilder: typeof BundleBuilder;
142
- composeSourceMaps: typeof composeSourceMaps;
143
- Consumer: typeof Consumer;
144
- createIndexMap: typeof createIndexMap;
145
- generateFunctionMap: typeof generateFunctionMap;
146
- fromRawMappings: typeof fromRawMappings;
147
- fromRawMappingsNonBlocking: typeof fromRawMappingsNonBlocking;
148
- functionMapBabelPlugin: typeof functionMapBabelPlugin;
149
- normalizeSourcePath: typeof normalizeSourcePath;
150
- toBabelSegments: typeof toBabelSegments;
151
- toSegmentTuple: typeof toSegmentTuple;
152
- };
153
- declare type $$EXPORT_DEFAULT_DECLARATION$$ =
154
- typeof $$EXPORT_DEFAULT_DECLARATION$$;
155
- export default $$EXPORT_DEFAULT_DECLARATION$$;