@expo/metro-config 58.0.1 → 58.0.2
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/build/ExpoMetroConfig.d.ts +4 -4
- package/build/ExpoMetroConfig.js +18 -7
- package/build/ExpoMetroConfig.js.map +1 -1
- package/build/build-cache-store.d.ts +12 -0
- package/build/build-cache-store.js +46 -0
- package/build/build-cache-store.js.map +1 -0
- package/build/env.d.ts +4 -0
- package/build/env.js +6 -0
- package/build/env.js.map +1 -1
- package/build/serializer/environmentVariableSerializerPlugin.js +4 -2
- package/build/serializer/environmentVariableSerializerPlugin.js.map +1 -1
- package/build/serializer/jsOutput.d.ts +3 -6
- package/build/serializer/jsOutput.js.map +1 -1
- package/build/serializer/reconcileTransformSerializerPlugin.js +14 -15
- package/build/serializer/reconcileTransformSerializerPlugin.js.map +1 -1
- package/build/serializer/sourceMap.d.ts +40 -4
- package/build/serializer/sourceMap.js +85 -155
- package/build/serializer/sourceMap.js.map +1 -1
- package/build/transform-worker/metro-transform-worker.d.ts +2 -3
- package/build/transform-worker/metro-transform-worker.js +38 -39
- package/build/transform-worker/metro-transform-worker.js.map +1 -1
- package/build/transform-worker/noxcturnal/noxcturnal-transformer.d.ts +0 -1
- package/build/transform-worker/noxcturnal/noxcturnal-transformer.js.map +1 -1
- package/build/transform-worker/noxcturnal/plugins/metro-dependency.js +1 -1
- package/build/transform-worker/noxcturnal/plugins/metro-dependency.js.map +1 -1
- package/build/transform-worker/transform-worker.js.map +1 -1
- package/build/transform-worker/transformShim.js +3 -4
- package/build/transform-worker/transformShim.js.map +1 -1
- package/package.json +4 -4
- package/build/serializer/packedMap.d.ts +0 -48
- package/build/serializer/packedMap.js +0 -440
- package/build/serializer/packedMap.js.map +0 -1
|
@@ -1,440 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright © 2026 650 Industries.
|
|
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
|
-
*/ // Compact, Array-compatible storage for a module's per-segment sourcemap
|
|
7
|
-
// data, replacing the per-segment heap-allocated tuple Array on
|
|
8
|
-
// `module.output[0].data.map`. The Proxy preserves every reader's access
|
|
9
|
-
// pattern (`Array.isArray`, `length`, numeric indices, iteration); the
|
|
10
|
-
// encoder fast path in `sourceMap.ts` reads the underlying `Int32Array`
|
|
11
|
-
// directly to avoid the per-segment tuple allocation that Proxy
|
|
12
|
-
// iteration would otherwise incur.
|
|
13
|
-
//
|
|
14
|
-
// `SerializableSourceMap` is the JSON-faithful sibling of the
|
|
15
|
-
// `PackedMap` class above — same logical shape, but storage is a plain
|
|
16
|
-
// `number[]` instead of an `Int32Array` so it round-trips through `JSON`.
|
|
17
|
-
// Workers emit it across IPC and `metro-cache` writes it to disk;
|
|
18
|
-
// `PackedMap.deserialize` rehydrates it on the main thread.
|
|
19
|
-
"use strict";
|
|
20
|
-
Object.defineProperty(exports, "__esModule", {
|
|
21
|
-
value: true
|
|
22
|
-
});
|
|
23
|
-
0 && (module.exports = {
|
|
24
|
-
PackedMap: null,
|
|
25
|
-
SENTINEL: null,
|
|
26
|
-
STRIDE: null,
|
|
27
|
-
countLinesAndTerminateSourceMap: null,
|
|
28
|
-
emptySourceMap: null,
|
|
29
|
-
installPackedMap: null,
|
|
30
|
-
isSerializableSourceMap: null,
|
|
31
|
-
makeProxy: null,
|
|
32
|
-
materializeMap: null,
|
|
33
|
-
packDecodedMappings: null,
|
|
34
|
-
packRawMappings: null,
|
|
35
|
-
patchTransformFileForPackedMaps: null,
|
|
36
|
-
tupleAt: null,
|
|
37
|
-
wrapTransformResultMaps: null
|
|
38
|
-
});
|
|
39
|
-
function _export(target, all) {
|
|
40
|
-
for(var name in all)Object.defineProperty(target, name, {
|
|
41
|
-
enumerable: true,
|
|
42
|
-
get: Object.getOwnPropertyDescriptor(all, name).get
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
_export(exports, {
|
|
46
|
-
get PackedMap () {
|
|
47
|
-
return PackedMap;
|
|
48
|
-
},
|
|
49
|
-
get SENTINEL () {
|
|
50
|
-
return SENTINEL;
|
|
51
|
-
},
|
|
52
|
-
get STRIDE () {
|
|
53
|
-
return STRIDE;
|
|
54
|
-
},
|
|
55
|
-
get countLinesAndTerminateSourceMap () {
|
|
56
|
-
return countLinesAndTerminateSourceMap;
|
|
57
|
-
},
|
|
58
|
-
get emptySourceMap () {
|
|
59
|
-
return emptySourceMap;
|
|
60
|
-
},
|
|
61
|
-
get installPackedMap () {
|
|
62
|
-
return installPackedMap;
|
|
63
|
-
},
|
|
64
|
-
get isSerializableSourceMap () {
|
|
65
|
-
return isSerializableSourceMap;
|
|
66
|
-
},
|
|
67
|
-
get makeProxy () {
|
|
68
|
-
return makeProxy;
|
|
69
|
-
},
|
|
70
|
-
get materializeMap () {
|
|
71
|
-
return materializeMap;
|
|
72
|
-
},
|
|
73
|
-
get packDecodedMappings () {
|
|
74
|
-
return packDecodedMappings;
|
|
75
|
-
},
|
|
76
|
-
get packRawMappings () {
|
|
77
|
-
return packRawMappings;
|
|
78
|
-
},
|
|
79
|
-
get patchTransformFileForPackedMaps () {
|
|
80
|
-
return patchTransformFileForPackedMaps;
|
|
81
|
-
},
|
|
82
|
-
get tupleAt () {
|
|
83
|
-
return tupleAt;
|
|
84
|
-
},
|
|
85
|
-
get wrapTransformResultMaps () {
|
|
86
|
-
return wrapTransformResultMaps;
|
|
87
|
-
}
|
|
88
|
-
});
|
|
89
|
-
const STRIDE = 5;
|
|
90
|
-
const SENTINEL = -1;
|
|
91
|
-
function isSerializableSourceMap(x) {
|
|
92
|
-
if (x == null || typeof x !== 'object') return false;
|
|
93
|
-
const o = x;
|
|
94
|
-
return o.__version === 1 && Array.isArray(o.__packed) && Array.isArray(o.__names) && typeof o.__count === 'number';
|
|
95
|
-
}
|
|
96
|
-
class PackedMap {
|
|
97
|
-
count;
|
|
98
|
-
names;
|
|
99
|
-
// `Int32Array` storage: 4 bytes/int off-heap vs 8 bytes/slot for the
|
|
100
|
-
// tagged `number[]` shape that `SerializableSourceMap` carries.
|
|
101
|
-
// Materialized eagerly so a `data.map` whose encoder never iterates
|
|
102
|
-
// (e.g. SSR-eval'd modules — the bundle is concatenated and
|
|
103
|
-
// `_compile`-ed without anyone calling `.buf`) doesn't strand a
|
|
104
|
-
// serialized-shape array on the JS heap.
|
|
105
|
-
buf;
|
|
106
|
-
constructor(buf, names, count){
|
|
107
|
-
this.buf = buf;
|
|
108
|
-
this.names = names;
|
|
109
|
-
this.count = count;
|
|
110
|
-
}
|
|
111
|
-
static deserialize(input) {
|
|
112
|
-
return new PackedMap(Int32Array.from(input.__packed), input.__names, input.__count);
|
|
113
|
-
}
|
|
114
|
-
static fromInts(buf, names, count) {
|
|
115
|
-
return new PackedMap(buf, names, count);
|
|
116
|
-
}
|
|
117
|
-
serialize() {
|
|
118
|
-
const buf = this.buf;
|
|
119
|
-
const out = new Array(buf.length);
|
|
120
|
-
for(let i = 0; i < buf.length; i++)out[i] = buf[i];
|
|
121
|
-
return {
|
|
122
|
-
__version: 1,
|
|
123
|
-
__count: this.count,
|
|
124
|
-
__names: this.names.slice(),
|
|
125
|
-
__packed: out
|
|
126
|
-
};
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
function tupleAt(p, i) {
|
|
130
|
-
if (i < 0 || i >= p.count) return undefined;
|
|
131
|
-
const buf = p.buf;
|
|
132
|
-
const off = i * STRIDE;
|
|
133
|
-
const genL = buf[off];
|
|
134
|
-
const genC = buf[off + 1];
|
|
135
|
-
const srcL = buf[off + 2];
|
|
136
|
-
if (srcL === SENTINEL) {
|
|
137
|
-
return [
|
|
138
|
-
genL,
|
|
139
|
-
genC
|
|
140
|
-
];
|
|
141
|
-
}
|
|
142
|
-
const srcC = buf[off + 3];
|
|
143
|
-
const nameIdx = buf[off + 4];
|
|
144
|
-
if (nameIdx === SENTINEL) {
|
|
145
|
-
return [
|
|
146
|
-
genL,
|
|
147
|
-
genC,
|
|
148
|
-
srcL,
|
|
149
|
-
srcC
|
|
150
|
-
];
|
|
151
|
-
}
|
|
152
|
-
// A `SerializableSourceMap` with `nameIdx >= __names.length` is malformed; throw a
|
|
153
|
-
// clear error rather than silently producing `[..., undefined]`, which
|
|
154
|
-
// would corrupt names through the encoder without any obvious symptom.
|
|
155
|
-
const name = p.names[nameIdx];
|
|
156
|
-
if (name === undefined) {
|
|
157
|
-
throw new Error(`[expo-metro-config] PackedMap segment ${i} references name index ${nameIdx}, ` + `but only ${p.names.length} names exist. The serialized entry is corrupt; ` + `clear the metro cache (\`expo start --clear\`) and rebuild.`);
|
|
158
|
-
}
|
|
159
|
-
return [
|
|
160
|
-
genL,
|
|
161
|
-
genC,
|
|
162
|
-
srcL,
|
|
163
|
-
srcC,
|
|
164
|
-
name
|
|
165
|
-
];
|
|
166
|
-
}
|
|
167
|
-
function* iterateTuples(p) {
|
|
168
|
-
for(let i = 0; i < p.count; i++){
|
|
169
|
-
yield tupleAt(p, i);
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
const NODE_INSPECT = Symbol.for('nodejs.util.inspect.custom');
|
|
173
|
-
function installPackedMap(data, source) {
|
|
174
|
-
// Tuple input goes straight to a typed-array-backed `PackedMap` — going
|
|
175
|
-
// via `packTuples` would allocate a `number[]` that
|
|
176
|
-
// `PackedMap.deserialize` would then drop on first `.buf` access.
|
|
177
|
-
const packed = isSerializableSourceMap(source) ? PackedMap.deserialize(source) : packTuplesToPackedMap(source);
|
|
178
|
-
// Lazy accessor for `data.map`: builds that never symbolicate (typical
|
|
179
|
-
// CI / quiet dev sessions) read `data.__packedMap` exclusively via the
|
|
180
|
-
// encoder fast path, so the Proxy is never allocated. Cached on first
|
|
181
|
-
// read so consumers that hold onto `data.map` (e.g.
|
|
182
|
-
// `getExplodedSourceMap`) see a stable identity.
|
|
183
|
-
let cachedProxy;
|
|
184
|
-
Object.defineProperty(data, 'map', {
|
|
185
|
-
get () {
|
|
186
|
-
if (!cachedProxy) cachedProxy = makeProxy(packed);
|
|
187
|
-
return cachedProxy;
|
|
188
|
-
},
|
|
189
|
-
enumerable: true,
|
|
190
|
-
configurable: true
|
|
191
|
-
});
|
|
192
|
-
Object.defineProperty(data, '__packedMap', {
|
|
193
|
-
value: packed,
|
|
194
|
-
enumerable: false,
|
|
195
|
-
writable: false,
|
|
196
|
-
configurable: true
|
|
197
|
-
});
|
|
198
|
-
}
|
|
199
|
-
function wrapTransformResultMaps(result) {
|
|
200
|
-
if (!result || !Array.isArray(result.output)) return result;
|
|
201
|
-
for (const out of result.output){
|
|
202
|
-
const data = out?.data;
|
|
203
|
-
if (!data) continue;
|
|
204
|
-
// Skip without touching `data.map` — reading it would fire the lazy
|
|
205
|
-
// getter and materialize a Proxy we don't need.
|
|
206
|
-
if (data.__packedMap) continue;
|
|
207
|
-
if (isSerializableSourceMap(data.map)) {
|
|
208
|
-
installPackedMap(data, data.map);
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
return result;
|
|
212
|
-
}
|
|
213
|
-
function patchTransformFileForPackedMaps(bundler) {
|
|
214
|
-
const originalTransformFile = bundler.transformFile.bind(bundler);
|
|
215
|
-
bundler.transformFile = async (...args)=>{
|
|
216
|
-
return wrapTransformResultMaps(await originalTransformFile(...args));
|
|
217
|
-
};
|
|
218
|
-
}
|
|
219
|
-
function materializeMap(map) {
|
|
220
|
-
if (map == null) return [];
|
|
221
|
-
if (isSerializableSourceMap(map)) {
|
|
222
|
-
const packed = PackedMap.deserialize(map);
|
|
223
|
-
const out = new Array(packed.count);
|
|
224
|
-
for(let i = 0; i < packed.count; i++){
|
|
225
|
-
out[i] = tupleAt(packed, i);
|
|
226
|
-
}
|
|
227
|
-
return out;
|
|
228
|
-
}
|
|
229
|
-
// The Proxy is `Array.isArray`-true and iterates via `Symbol.iterator`.
|
|
230
|
-
return Array.isArray(map) ? Array.from(map) : [];
|
|
231
|
-
}
|
|
232
|
-
function indexOrInsert(names, name) {
|
|
233
|
-
const existing = names.get(name);
|
|
234
|
-
if (existing !== undefined) return existing;
|
|
235
|
-
const idx = names.size;
|
|
236
|
-
names.set(name, idx);
|
|
237
|
-
return idx;
|
|
238
|
-
}
|
|
239
|
-
function emptySourceMap() {
|
|
240
|
-
return {
|
|
241
|
-
__version: 1,
|
|
242
|
-
__count: 0,
|
|
243
|
-
__names: [],
|
|
244
|
-
__packed: []
|
|
245
|
-
};
|
|
246
|
-
}
|
|
247
|
-
function packRawMappings(rawMappings) {
|
|
248
|
-
const names = new Map();
|
|
249
|
-
const out = new Array(rawMappings.length * STRIDE);
|
|
250
|
-
let off = 0;
|
|
251
|
-
for (const m of rawMappings){
|
|
252
|
-
out[off] = m.generated.line;
|
|
253
|
-
out[off + 1] = m.generated.column;
|
|
254
|
-
if (m.original == null) {
|
|
255
|
-
out[off + 2] = SENTINEL;
|
|
256
|
-
out[off + 3] = SENTINEL;
|
|
257
|
-
out[off + 4] = SENTINEL;
|
|
258
|
-
} else {
|
|
259
|
-
out[off + 2] = m.original.line;
|
|
260
|
-
out[off + 3] = m.original.column;
|
|
261
|
-
out[off + 4] = typeof m.name === 'string' ? indexOrInsert(names, m.name) : SENTINEL;
|
|
262
|
-
}
|
|
263
|
-
off += STRIDE;
|
|
264
|
-
}
|
|
265
|
-
return {
|
|
266
|
-
__version: 1,
|
|
267
|
-
__count: rawMappings.length,
|
|
268
|
-
__names: [
|
|
269
|
-
...names.keys()
|
|
270
|
-
],
|
|
271
|
-
__packed: out
|
|
272
|
-
};
|
|
273
|
-
}
|
|
274
|
-
function packDecodedMappings(input) {
|
|
275
|
-
const decoded = loadSourceMapCodec().decode(input.mappings);
|
|
276
|
-
let total = 0;
|
|
277
|
-
for (const line of decoded)total += line.length;
|
|
278
|
-
const out = new Array(total * STRIDE);
|
|
279
|
-
let off = 0;
|
|
280
|
-
let count = 0;
|
|
281
|
-
for(let lineIdx = 0; lineIdx < decoded.length; lineIdx++){
|
|
282
|
-
const genLine = lineIdx + 1;
|
|
283
|
-
for (const seg of decoded[lineIdx]){
|
|
284
|
-
out[off] = genLine;
|
|
285
|
-
out[off + 1] = seg[0];
|
|
286
|
-
if (seg.length === 1) {
|
|
287
|
-
out[off + 2] = SENTINEL;
|
|
288
|
-
out[off + 3] = SENTINEL;
|
|
289
|
-
out[off + 4] = SENTINEL;
|
|
290
|
-
} else {
|
|
291
|
-
out[off + 2] = seg[2] + 1;
|
|
292
|
-
out[off + 3] = seg[3];
|
|
293
|
-
out[off + 4] = seg.length === 5 ? seg[4] : SENTINEL;
|
|
294
|
-
}
|
|
295
|
-
off += STRIDE;
|
|
296
|
-
count++;
|
|
297
|
-
}
|
|
298
|
-
}
|
|
299
|
-
return {
|
|
300
|
-
__version: 1,
|
|
301
|
-
__count: count,
|
|
302
|
-
__names: input.names.slice(),
|
|
303
|
-
__packed: out
|
|
304
|
-
};
|
|
305
|
-
}
|
|
306
|
-
function countLinesAndTerminateSourceMap(code, sourceMap) {
|
|
307
|
-
const NEWLINE = /\r\n?|\n|\u2028|\u2029/g;
|
|
308
|
-
let lineCount = 1;
|
|
309
|
-
let lastLineStart = 0;
|
|
310
|
-
for (const match of code.matchAll(NEWLINE)){
|
|
311
|
-
if (match.index == null) continue;
|
|
312
|
-
lineCount++;
|
|
313
|
-
lastLineStart = match.index + match[0].length;
|
|
314
|
-
}
|
|
315
|
-
const lastLineLength = code.length - lastLineStart;
|
|
316
|
-
const lastIdx = sourceMap.__count - 1;
|
|
317
|
-
if (lastIdx >= 0) {
|
|
318
|
-
const off = lastIdx * STRIDE;
|
|
319
|
-
if (sourceMap.__packed[off] === lineCount && sourceMap.__packed[off + 1] === lastLineLength) {
|
|
320
|
-
return {
|
|
321
|
-
lineCount,
|
|
322
|
-
sourceMap
|
|
323
|
-
};
|
|
324
|
-
}
|
|
325
|
-
}
|
|
326
|
-
return {
|
|
327
|
-
lineCount,
|
|
328
|
-
sourceMap: {
|
|
329
|
-
__version: 1,
|
|
330
|
-
__count: sourceMap.__count + 1,
|
|
331
|
-
__names: sourceMap.__names,
|
|
332
|
-
__packed: [
|
|
333
|
-
...sourceMap.__packed,
|
|
334
|
-
lineCount,
|
|
335
|
-
lastLineLength,
|
|
336
|
-
SENTINEL,
|
|
337
|
-
SENTINEL,
|
|
338
|
-
SENTINEL
|
|
339
|
-
]
|
|
340
|
-
}
|
|
341
|
-
};
|
|
342
|
-
}
|
|
343
|
-
let _sourceMapCodec;
|
|
344
|
-
function loadSourceMapCodec() {
|
|
345
|
-
if (!_sourceMapCodec) {
|
|
346
|
-
_sourceMapCodec = require('@jridgewell/sourcemap-codec');
|
|
347
|
-
}
|
|
348
|
-
return _sourceMapCodec;
|
|
349
|
-
}
|
|
350
|
-
// Pack tuples straight into an `Int32Array`-backed `PackedMap`, skipping
|
|
351
|
-
// a `SerializableSourceMap`. Used by `installPackedMap` when the caller already lives
|
|
352
|
-
// on the main thread (reconcile, in-memory refits) and never needs the
|
|
353
|
-
// JSON-faithful serialized shape for IPC.
|
|
354
|
-
function packTuplesToPackedMap(tuples) {
|
|
355
|
-
const names = new Map();
|
|
356
|
-
const buf = new Int32Array(tuples.length * STRIDE);
|
|
357
|
-
let off = 0;
|
|
358
|
-
for (const tuple of tuples){
|
|
359
|
-
buf[off] = tuple[0];
|
|
360
|
-
buf[off + 1] = tuple[1];
|
|
361
|
-
if (tuple.length === 2) {
|
|
362
|
-
buf[off + 2] = SENTINEL;
|
|
363
|
-
buf[off + 3] = SENTINEL;
|
|
364
|
-
buf[off + 4] = SENTINEL;
|
|
365
|
-
} else {
|
|
366
|
-
buf[off + 2] = tuple[2];
|
|
367
|
-
buf[off + 3] = tuple[3];
|
|
368
|
-
buf[off + 4] = tuple.length === 5 ? indexOrInsert(names, tuple[4]) : SENTINEL;
|
|
369
|
-
}
|
|
370
|
-
off += STRIDE;
|
|
371
|
-
}
|
|
372
|
-
return PackedMap.fromInts(buf, [
|
|
373
|
-
...names.keys()
|
|
374
|
-
], tuples.length);
|
|
375
|
-
}
|
|
376
|
-
function makeProxy(packed) {
|
|
377
|
-
const target = [];
|
|
378
|
-
const handler = {
|
|
379
|
-
get (_t, prop) {
|
|
380
|
-
if (prop === 'length') return packed.count;
|
|
381
|
-
if (prop === Symbol.iterator) return ()=>iterateTuples(packed);
|
|
382
|
-
if (prop === 'toJSON') return ()=>packed.serialize();
|
|
383
|
-
if (prop === NODE_INSPECT) {
|
|
384
|
-
return ()=>`PackedMap(count=${packed.count})`;
|
|
385
|
-
}
|
|
386
|
-
if (typeof prop === 'string') {
|
|
387
|
-
const n = +prop;
|
|
388
|
-
if (Number.isInteger(n) && String(n) === prop && n >= 0) {
|
|
389
|
-
return tupleAt(packed, n);
|
|
390
|
-
}
|
|
391
|
-
}
|
|
392
|
-
// Array.prototype methods (`forEach`, `map`, …) reach us back
|
|
393
|
-
// through numeric-index `get` and `length`, both covered above.
|
|
394
|
-
return Reflect.get(target, prop);
|
|
395
|
-
},
|
|
396
|
-
has (_t, prop) {
|
|
397
|
-
if (prop === 'length' || prop === Symbol.iterator || prop === 'toJSON') return true;
|
|
398
|
-
if (typeof prop === 'string') {
|
|
399
|
-
const n = +prop;
|
|
400
|
-
if (Number.isInteger(n) && String(n) === prop && n >= 0 && n < packed.count) {
|
|
401
|
-
return true;
|
|
402
|
-
}
|
|
403
|
-
}
|
|
404
|
-
return Reflect.has(target, prop);
|
|
405
|
-
},
|
|
406
|
-
ownKeys (t) {
|
|
407
|
-
const keys = new Array(packed.count);
|
|
408
|
-
for(let i = 0; i < packed.count; i++)keys[i] = String(i);
|
|
409
|
-
return keys.concat(Reflect.ownKeys(t));
|
|
410
|
-
},
|
|
411
|
-
getOwnPropertyDescriptor (t, prop) {
|
|
412
|
-
if (typeof prop === 'string') {
|
|
413
|
-
const n = +prop;
|
|
414
|
-
if (Number.isInteger(n) && String(n) === prop && n >= 0 && n < packed.count) {
|
|
415
|
-
return {
|
|
416
|
-
value: tupleAt(packed, n),
|
|
417
|
-
writable: false,
|
|
418
|
-
enumerable: true,
|
|
419
|
-
configurable: true
|
|
420
|
-
};
|
|
421
|
-
}
|
|
422
|
-
}
|
|
423
|
-
// Delegate `length` to the real Array target so the Proxy invariant
|
|
424
|
-
// for non-configurable own keys holds.
|
|
425
|
-
return Reflect.getOwnPropertyDescriptor(t, prop);
|
|
426
|
-
},
|
|
427
|
-
set () {
|
|
428
|
-
throw new TypeError('[expo-metro-config] data.map is read-only — backed by a PackedMap. ' + 'Modify the underlying source map or rebuild with a fresh transform instead.');
|
|
429
|
-
},
|
|
430
|
-
deleteProperty () {
|
|
431
|
-
throw new TypeError('[expo-metro-config] data.map is read-only — backed by a PackedMap.');
|
|
432
|
-
},
|
|
433
|
-
defineProperty () {
|
|
434
|
-
throw new TypeError('[expo-metro-config] data.map is read-only — backed by a PackedMap.');
|
|
435
|
-
}
|
|
436
|
-
};
|
|
437
|
-
return new Proxy(target, handler);
|
|
438
|
-
}
|
|
439
|
-
|
|
440
|
-
//# sourceMappingURL=packedMap.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["serializer/packedMap.ts"],"sourcesContent":[null],"names":["PackedMap","SENTINEL","STRIDE","countLinesAndTerminateSourceMap","emptySourceMap","installPackedMap","isSerializableSourceMap","makeProxy","materializeMap","packDecodedMappings","packRawMappings","patchTransformFileForPackedMaps","tupleAt","wrapTransformResultMaps","x","o","__version","Array","isArray","__packed","__names","__count","count","names","buf","deserialize","input","Int32Array","from","fromInts","serialize","out","length","i","slice","p","undefined","off","genL","genC","srcL","srcC","nameIdx","name","Error","iterateTuples","NODE_INSPECT","Symbol","for","data","source","packed","packTuplesToPackedMap","cachedProxy","Object","defineProperty","get","enumerable","configurable","value","writable","result","output","__packedMap","map","bundler","originalTransformFile","transformFile","bind","args","indexOrInsert","existing","idx","size","set","rawMappings","Map","m","generated","line","column","original","keys","decoded","loadSourceMapCodec","decode","mappings","total","lineIdx","genLine","seg","code","sourceMap","NEWLINE","lineCount","lastLineStart","match","matchAll","index","lastLineLength","lastIdx","_sourceMapCodec","require","tuples","tuple","target","handler","_t","prop","iterator","n","Number","isInteger","String","Reflect","has","ownKeys","t","concat","getOwnPropertyDescriptor","TypeError","deleteProperty","Proxy"],"mappings":"AAAA;;;;;CAKC,GAED,yEAAyE;AACzE,gEAAgE;AAChE,yEAAyE;AACzE,uEAAuE;AACvE,wEAAwE;AACxE,gEAAgE;AAChE,mCAAmC;AACnC,EAAE;AACF,8DAA8D;AAC9D,uEAAuE;AACvE,0EAA0E;AAC1E,kEAAkE;AAClE,4DAA4D;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAoC/CA;eAAAA;;QApBAC;eAAAA;;QADAC;eAAAA;;QA+RGC;eAAAA;;QAzFAC;eAAAA;;QA5FAC;eAAAA;;QAhGAC;eAAAA;;QAyVAC;eAAAA;;QArLAC;eAAAA;;QAoEAC;eAAAA;;QAjCAC;eAAAA;;QAhDAC;eAAAA;;QAlGAC;eAAAA;;QA+EAC;eAAAA;;;AA9IT,MAAMX,SAAS;AACf,MAAMD,WAAW,CAAC;AASlB,SAASK,wBAAwBQ,CAAU;IAChD,IAAIA,KAAK,QAAQ,OAAOA,MAAM,UAAU,OAAO;IAC/C,MAAMC,IAAID;IACV,OACEC,EAAEC,SAAS,KAAK,KAChBC,MAAMC,OAAO,CAACH,EAAEI,QAAQ,KACxBF,MAAMC,OAAO,CAACH,EAAEK,OAAO,KACvB,OAAOL,EAAEM,OAAO,KAAK;AAEzB;AAEO,MAAMrB;IACFsB,MAAc;IACdC,MAAgB;IACzB,qEAAqE;IACrE,gEAAgE;IAChE,oEAAoE;IACpE,4DAA4D;IAC5D,gEAAgE;IAChE,yCAAyC;IAChCC,IAAgB;IAEzB,YAAoBA,GAAe,EAAED,KAAe,EAAED,KAAa,CAAE;QACnE,IAAI,CAACE,GAAG,GAAGA;QACX,IAAI,CAACD,KAAK,GAAGA;QACb,IAAI,CAACD,KAAK,GAAGA;IACf;IAEA,OAAOG,YAAYC,KAA4B,EAAa;QAC1D,OAAO,IAAI1B,UAAU2B,WAAWC,I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