peachsim 0.1.2298 → 0.1.2300
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/cli/commands/serve.ts +12 -3
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/attached-projects.cjs +1 -1
- package/dist-lib/auth/shared-session.cjs +1 -1
- package/dist-lib/backend-origin.cjs +1 -1
- package/dist-lib/beta.cjs +1 -1
- package/dist-lib/beta.mjs +1 -1
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +1 -1
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +1 -1
- package/dist-lib/bundle-channel.cjs +196 -49
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +1 -1
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +1 -1
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +1 -1
- package/dist-lib/cloud.cjs +1 -1
- package/dist-lib/cloud.mjs +1 -1
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/config.mjs +1 -1
- package/dist-lib/detox/index.cjs +2 -2
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +167 -41
- package/dist-lib/expo-swift-metadata.cjs +1 -1
- package/dist-lib/expo-swift-metadata.mjs +1 -1
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +184 -57
- package/dist-lib/host/fetch-proxy-handler.cjs +5 -9
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
- package/dist-lib/host/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +61 -31
- package/dist-lib/jump-to-source-babel.cjs +1 -1
- package/dist-lib/jump-to-source-native.cjs +1 -1
- package/dist-lib/kotlin-host.cjs +1 -1
- package/dist-lib/menu.cjs +1 -1
- package/dist-lib/menu.mjs +1 -1
- package/dist-lib/metro-fingerprint-registry.cjs +1 -1
- package/dist-lib/metro-fingerprint-registry.mjs +1 -1
- package/dist-lib/metro-production-bundle.cjs +1 -1
- package/dist-lib/metro-production-bundle.mjs +1 -1
- package/dist-lib/metro.cjs +60 -30
- package/dist-lib/native-app-identity-project.cjs +44 -23
- package/dist-lib/native-app-identity-project.mjs +44 -23
- package/dist-lib/native-app-identity.cjs +1 -1
- package/dist-lib/native-app-identity.mjs +1 -1
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +1 -1
- package/dist-lib/pdfium-raster.cjs +1 -1
- package/dist-lib/pdfium-raster.mjs +1 -1
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +1 -1
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +24 -24
- package/dist-lib/public-origins-lib.json +53 -53
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +1 -1
- package/dist-lib/reap-browser.cjs +1 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +1 -1
- package/dist-lib/sdk.mjs +1 -1
- package/dist-lib/skills.cjs +213 -74
- package/dist-lib/swift-compile.cjs +49 -3
- package/dist-lib/swift-compile.mjs +49 -3
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +1 -1
- package/dist-lib/swift-submit.cjs +1 -1
- package/dist-lib/swift-submit.mjs +1 -1
- package/dist-lib/swift-toolchain.cjs +1 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +105 -35
- package/dist-lib/vite.cjs +11 -10
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-compat/src/stubs/native-seams/react-native-gesture-handler.d.ts +3 -0
- package/dist-types/packages/peach-engine/src/render-worker/gesture-arbitration-native.d.ts +124 -0
- package/dist-types/packages/peach-engine/src/render-worker/nativeAnimMirrorContract.d.ts +2 -1
- package/dist-types/packages/peach-kit/src/capabilities.d.ts +2 -2
- package/dist-types/packages/peach-kit/src/transitions/screen-transition-math.d.ts +25 -13
- package/kotlin/sdk.tar.gz +0 -0
- package/package.json +1 -1
- package/runtime-companion.json +1 -1
- package/src/bundle-channel.mjs +4 -3
- package/src/cli-runtime.ts +6 -0
- package/src/expo-discovery-cache.ts +65 -4
- package/src/native-firebase-config.ts +14 -0
- package/src/native-swift-slices.ts +9 -2
- package/src/swift-compile.ts +28 -1
- package/src/swift-standins.ts +6 -3
- package/src/swift-wasm-prune.ts +29 -0
- package/src/vite-plugin-one.ts +3 -3
- package/src/xcode-project.ts +46 -23
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import type { GestureArbitrationGraph, GestureSeamNativeRecognitionEvent } from './gesture-seam-protocol.d.ts';
|
|
2
|
+
type RecognitionEvent = GestureSeamNativeRecognitionEvent;
|
|
3
|
+
type Emit = (event: RecognitionEvent) => void;
|
|
4
|
+
type CancelNative = (event: RecognitionEvent, visible: boolean) => void;
|
|
5
|
+
export type GestureRecognizerLocation = {
|
|
6
|
+
x: number;
|
|
7
|
+
y: number;
|
|
8
|
+
width: number;
|
|
9
|
+
height: number;
|
|
10
|
+
hitSlop: readonly number[] | null;
|
|
11
|
+
};
|
|
12
|
+
export type GestureRecognizerEvent = {
|
|
13
|
+
recognizer: number;
|
|
14
|
+
state: number;
|
|
15
|
+
oldState: number;
|
|
16
|
+
pointers: number;
|
|
17
|
+
x: number;
|
|
18
|
+
y: number;
|
|
19
|
+
absoluteX: number;
|
|
20
|
+
absoluteY: number;
|
|
21
|
+
duration: number;
|
|
22
|
+
};
|
|
23
|
+
export interface GestureRecognizerHost {
|
|
24
|
+
locate(tag: number, x: number, y: number): GestureRecognizerLocation | null;
|
|
25
|
+
publish(event: GestureRecognizerEvent): void;
|
|
26
|
+
emit: Emit;
|
|
27
|
+
cancelNative: CancelNative;
|
|
28
|
+
}
|
|
29
|
+
export type GestureRecognizerPointer = {
|
|
30
|
+
x: number;
|
|
31
|
+
y: number;
|
|
32
|
+
touches: ReadonlyArray<{
|
|
33
|
+
pageX: number;
|
|
34
|
+
pageY: number;
|
|
35
|
+
identifier: number;
|
|
36
|
+
}>;
|
|
37
|
+
};
|
|
38
|
+
declare const RECOGNIZER_PHASE: {
|
|
39
|
+
readonly down: 0;
|
|
40
|
+
readonly move: 1;
|
|
41
|
+
readonly up: 2;
|
|
42
|
+
};
|
|
43
|
+
interface GestureArbitrationNative {
|
|
44
|
+
readonly HEAPU8: Uint8Array;
|
|
45
|
+
peachArbitration?: (kind: number, id: number, tag: number, oldState: number, visible: number) => void;
|
|
46
|
+
peachGestureLocate?: (index: number, tag: number, x: number, y: number) => number;
|
|
47
|
+
peachGestureEvent?: (index: number) => void;
|
|
48
|
+
_peach_arbitration_buffer(size: number): number;
|
|
49
|
+
_peach_gesture_locate_buffer(): number;
|
|
50
|
+
_peach_gesture_event_buffer(): number;
|
|
51
|
+
_peach_gesture_add(index: number, tag: number, length: number): void;
|
|
52
|
+
_peach_gesture_update(index: number, tag: number, length: number): void;
|
|
53
|
+
_peach_gesture_remove(index: number, tag: number): void;
|
|
54
|
+
_peach_gesture_set_android(index: number, android: number): void;
|
|
55
|
+
_peach_gesture_feed(index: number, tag: number, phase: number, time: number, length: number): void;
|
|
56
|
+
_peach_gesture_advance(index: number, now: number): void;
|
|
57
|
+
_peach_gesture_next_deadline(index: number): number;
|
|
58
|
+
_peach_gesture_state(index: number, tag: number): number;
|
|
59
|
+
_peach_gesture_activations(index: number, tag: number): number;
|
|
60
|
+
_peach_gesture_set_state(index: number, tag: number, state: number, manualPointers: number): void;
|
|
61
|
+
_peach_gesture_cancel(index: number, tag: number): void;
|
|
62
|
+
_peach_gesture_reset_for_pointer(index: number, tag: number): void;
|
|
63
|
+
_peach_arbitration_create(): number;
|
|
64
|
+
_peach_arbitration_upsert(index: number, length: number): number;
|
|
65
|
+
_peach_arbitration_drop(index: number, tag: number): void;
|
|
66
|
+
_peach_arbitration_clear(index: number): void;
|
|
67
|
+
_peach_arbitration_clear_owner(index: number, peerEpoch: number, surface: number, generation: number): void;
|
|
68
|
+
_peach_arbitration_handle(index: number, id: number, tag: number, state: number, oldState: number): void;
|
|
69
|
+
_peach_arbitration_should_emit_update(index: number, tag: number): number;
|
|
70
|
+
_peach_arbitration_set_tracked_pointers(index: number, tag: number, count: number): void;
|
|
71
|
+
_peach_arbitration_tracked_pointers(index: number, tag: number): number;
|
|
72
|
+
_peach_arbitration_configure(index: number, tag: number, flags: number): void;
|
|
73
|
+
_peach_arbitration_allows_simultaneous(index: number, a: number, b: number): number;
|
|
74
|
+
_peach_arbitration_has_blocking_relation(index: number, a: number, b: number): number;
|
|
75
|
+
_peach_arbitration_set_coexists(index: number, tag: number, value: number): void;
|
|
76
|
+
_peach_arbitration_sizes(index: number): void;
|
|
77
|
+
_peach_arbitration_live_events(index: number): number;
|
|
78
|
+
}
|
|
79
|
+
export declare function isGestureArbitrationGraph(value: unknown): value is GestureArbitrationGraph;
|
|
80
|
+
export declare class GestureArbitrator {
|
|
81
|
+
private readonly events;
|
|
82
|
+
private nextEventId;
|
|
83
|
+
private depth;
|
|
84
|
+
private bound;
|
|
85
|
+
recognizerHost: GestureRecognizerHost | null;
|
|
86
|
+
private timer;
|
|
87
|
+
private timerAt;
|
|
88
|
+
get native(): GestureArbitrationNative;
|
|
89
|
+
private get index();
|
|
90
|
+
private core;
|
|
91
|
+
event(id: number): RecognitionEvent | undefined;
|
|
92
|
+
private call;
|
|
93
|
+
private armTimer;
|
|
94
|
+
private recognize;
|
|
95
|
+
setRecognizerHost(host: GestureRecognizerHost | null): void;
|
|
96
|
+
addRecognizer(tag: number, config: readonly number[]): void;
|
|
97
|
+
updateRecognizer(tag: number, config: readonly number[]): void;
|
|
98
|
+
removeRecognizer(tag: number): void;
|
|
99
|
+
feedRecognizer(tag: number, phase: keyof typeof RECOGNIZER_PHASE, event: GestureRecognizerPointer, time: number, android: boolean): void;
|
|
100
|
+
setRecognizerState(tag: number, state: number, manualPointers: number | null, android: boolean): void;
|
|
101
|
+
cancelRecognizer(tag: number): void;
|
|
102
|
+
resetRecognizerForPointer(tag: number): void;
|
|
103
|
+
recognizerState(tag: number): number;
|
|
104
|
+
recognizerActivations(tag: number): number;
|
|
105
|
+
private releaseEvents;
|
|
106
|
+
upsert(graph: GestureArbitrationGraph, cancelNative: CancelNative, emit: Emit): boolean;
|
|
107
|
+
drop(handlerTag: number, cancelNative: CancelNative, emit: Emit): void;
|
|
108
|
+
handle(event: RecognitionEvent, emit: Emit, cancelNative: CancelNative): void;
|
|
109
|
+
getDebugSizes(): {
|
|
110
|
+
graphs: number;
|
|
111
|
+
latestGenerations: number;
|
|
112
|
+
tags: number;
|
|
113
|
+
};
|
|
114
|
+
clear(): void;
|
|
115
|
+
clearOwner(peerEpoch: number, surfaceId: string, generation: number): void;
|
|
116
|
+
shouldEmitUpdate(handlerTag: number): boolean;
|
|
117
|
+
setTrackedPointers(handlerTag: number, pointerIds: readonly number[]): void;
|
|
118
|
+
getTrackedPointers(handlerTag: number): readonly number[];
|
|
119
|
+
configureHandler(handlerTag: number, handlerName: string, config: Record<string, unknown>): void;
|
|
120
|
+
allowsSimultaneous(a: number, b: number): boolean;
|
|
121
|
+
hasBlockingRelation(a: number, b: number): boolean;
|
|
122
|
+
setCoexistsWithNativeViews(handlerTag: number, value: boolean): void;
|
|
123
|
+
}
|
|
124
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ScreenTransitionDescriptor, ScreenInteractiveDescriptor, ShellInteractiveEdgeSwipeSpec, ShellInteractiveFormSheetSpec } from '../../../peach-kit/src/transitions/screen-transition-math.d.ts';
|
|
1
|
+
import type { ScreenTransitionDescriptor, ScreenInteractiveDescriptor, ShellInteractiveEdgeSwipeSpec, ShellInteractiveFormSheetSpec, ZoomFinger } from '../../../peach-kit/src/transitions/screen-transition-math.d.ts';
|
|
2
2
|
import type { LottieIntent } from '../engine/lottie-types.d.ts';
|
|
3
3
|
import type { NativeAnimationPriority } from '../engine/native-animation-driver.d.ts';
|
|
4
4
|
import type { NativeAnimationGraphNode, NativeAnimationGraphSpring } from '../engine/native-animation-graph.d.ts';
|
|
@@ -19,6 +19,7 @@ export type NativeAnimMirrorEnvelope = {
|
|
|
19
19
|
generation: number;
|
|
20
20
|
interactiveId: number;
|
|
21
21
|
drag: number;
|
|
22
|
+
finger?: ZoomFinger;
|
|
22
23
|
} | {
|
|
23
24
|
type: 'screenInteractiveEnd';
|
|
24
25
|
surfaceId: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { LayoutHookPlacement, SootSimNode as SlotContainer } from '../../peach-engine/src/engine/node.d.ts';
|
|
2
2
|
import type { ScreenFormSheetCommit, ScreenFormSheetMotion } from '../../peach-engine/src/render-worker/screen-form-sheet-commit-protocol.d.ts';
|
|
3
3
|
import type { ScreenInfo } from './navigation-types.d.ts';
|
|
4
|
-
import type { ShellInteractiveEdgeSwipeSpec, ShellInteractiveFormSheetSpec } from './transitions/screen-transition-math.d.ts';
|
|
4
|
+
import type { ShellInteractiveEdgeSwipeSpec, ShellInteractiveFormSheetSpec, ZoomFinger } from './transitions/screen-transition-math.d.ts';
|
|
5
5
|
import type { ShellNativeEvaluationOwner, SystemPermissionDescriptor, SystemPermissionKind, SystemPermissionLocationAccuracy, SystemPermissionState, SystemPermissionStatus, SootsimSettingsPage } from '../../peach-globals/src/index.d.ts';
|
|
6
6
|
import type { ComponentType, Context, ReactNode, ReactPortal } from 'react';
|
|
7
7
|
export type { SystemNotificationSettings, SystemPermissionDescriptor, SystemPermissionKind, SystemPermissionLocationAccuracy, SystemPermissionState, SystemPermissionStatus, } from '../../peach-globals/src/index.d.ts';
|
|
@@ -271,7 +271,7 @@ export interface SootSimEngineConfig {
|
|
|
271
271
|
interactiveId: number;
|
|
272
272
|
surfaceId: string;
|
|
273
273
|
generation: number;
|
|
274
|
-
}, drag: number) => void;
|
|
274
|
+
}, drag: number, finger?: ZoomFinger) => void;
|
|
275
275
|
endShellScreenInteractive?: (owner: {
|
|
276
276
|
interactiveId: number;
|
|
277
277
|
surfaceId: string;
|
|
@@ -97,7 +97,6 @@ export interface ScreenSlideInput {
|
|
|
97
97
|
height: number;
|
|
98
98
|
};
|
|
99
99
|
zoomInteraction?: ZoomInteraction;
|
|
100
|
-
zoomEdgeDrag?: ZoomEdgeDrag;
|
|
101
100
|
zoomRelease?: ZoomRelease;
|
|
102
101
|
zoomReleaseMs?: number;
|
|
103
102
|
handoff01?: number;
|
|
@@ -236,20 +235,33 @@ export interface SlideTrack {
|
|
|
236
235
|
}
|
|
237
236
|
export declare function slideTrackFollow(track: SlideTrack, target: number, dtMs: number): SlideTrack;
|
|
238
237
|
export declare function slideTrackSettled(track: SlideTrack, target: number, screenWidth: number): boolean;
|
|
239
|
-
export interface
|
|
238
|
+
export interface ZoomFinger {
|
|
239
|
+
gesture: 'edge' | 'pull';
|
|
240
240
|
touchX: number;
|
|
241
241
|
touchY: number;
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
242
|
+
dx: number;
|
|
243
|
+
dy: number;
|
|
244
|
+
}
|
|
245
|
+
export declare function zoomFingerPose(finger: ZoomFinger, target: ZoomTargetRect): ZoomInteraction;
|
|
246
|
+
export interface ZoomFollow {
|
|
247
|
+
pose: ZoomInteraction;
|
|
248
|
+
velocity: {
|
|
249
|
+
anchorX: number;
|
|
250
|
+
anchorY: number;
|
|
251
|
+
contentScale: number;
|
|
252
|
+
boundsProgress: number;
|
|
253
|
+
};
|
|
254
|
+
samples: number;
|
|
255
|
+
}
|
|
256
|
+
export declare function zoomFollowStart(finger: ZoomFinger, target: ZoomTargetRect): ZoomFollow;
|
|
257
|
+
export declare function zoomFollowStep(follow: ZoomFollow, goal: ZoomInteraction, dtMs: number): ZoomFollow;
|
|
258
|
+
export declare function zoomFollowSettled(follow: ZoomFollow, goal: ZoomInteraction, target: ZoomTargetRect): boolean;
|
|
250
259
|
export declare function zoomEdgeDismissCommits(translation: number, vx: number): boolean;
|
|
251
|
-
export declare function
|
|
252
|
-
|
|
260
|
+
export declare function zoomFollowRelease(follow: ZoomFollow, gesture: ZoomFinger['gesture'], commit: boolean, fingerVelocity: {
|
|
261
|
+
x: number;
|
|
262
|
+
y: number;
|
|
263
|
+
}): ZoomRelease;
|
|
264
|
+
export declare const ZOOM_RELEASE_COMMIT_MS = 1130;
|
|
253
265
|
export declare const ZOOM_PULL_COMMIT_SCALE_SPRING: {
|
|
254
266
|
omega: number;
|
|
255
267
|
zeta: number;
|
|
@@ -258,7 +270,7 @@ export declare const ZOOM_EDGE_COMMIT_SCALE_SPRING: {
|
|
|
258
270
|
omega: number;
|
|
259
271
|
zeta: number;
|
|
260
272
|
};
|
|
261
|
-
export declare const ZOOM_RELEASE_CANCEL_MS =
|
|
273
|
+
export declare const ZOOM_RELEASE_CANCEL_MS = 610;
|
|
262
274
|
export declare const ZOOM_RELEASE_PRESENTATION_LEAD_MS: number;
|
|
263
275
|
export declare function zoomReleasePose(release: ZoomRelease, source: ZoomSourceRect, target: ZoomTargetRect, elapsedMs: number): ZoomInteraction;
|
|
264
276
|
export declare function zoomReleasePoseState<T>(math: TransitionScalarMath<T>, release: ZoomRelease, source: ZoomSourceRect, target: ZoomTargetRect, elapsedMs: T): ZoomInteraction<T>;
|
package/kotlin/sdk.tar.gz
CHANGED
|
Binary file
|
package/package.json
CHANGED
package/runtime-companion.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"abi":1,"sha256":"
|
|
1
|
+
{"abi":1,"sha256":"60900a3af6e6213c855e6682baa0ebdb6a6865510e4e3a51a24d4c584b3fdec2","file":"node/cli-60900a3af6e6213c855e6682baa0ebdb6a6865510e4e3a51a24d4c584b3fdec2.cjs"}
|
package/src/bundle-channel.mjs
CHANGED
|
@@ -7,7 +7,7 @@ import { brotliCompressSync, constants as zlibConstants } from 'node:zlib'
|
|
|
7
7
|
import { isLoopbackHost } from './backend-origin'
|
|
8
8
|
import { resolveConnectionInput } from './dev-bundle-resolution'
|
|
9
9
|
import { cacheDir } from './home-paths'
|
|
10
|
-
import { getCliRuntime } from './cli-runtime'
|
|
10
|
+
import { getCliRuntime, loadCliRuntime } from './cli-runtime'
|
|
11
11
|
import { readInstalledNativePackageVersionsAsync } from './installed-package-versions'
|
|
12
12
|
import { buildNativeBundles, insertNativeBundleFooters } from './native-bundles'
|
|
13
13
|
import { nodeHttpFetch } from './node-http-fetch'
|
|
@@ -174,8 +174,9 @@ async function prepareChannel({
|
|
|
174
174
|
[...files.keys()].map((path) => path.slice(0, path.lastIndexOf('/'))),
|
|
175
175
|
)
|
|
176
176
|
let locations = 0
|
|
177
|
-
const { stripRolldownBundleInventoryFooter, attachRolldownBundleInventory } =
|
|
178
|
-
|
|
177
|
+
const { stripRolldownBundleInventoryFooter, attachRolldownBundleInventory } = (
|
|
178
|
+
await loadCliRuntime()
|
|
179
|
+
).rolldown_bundle_inventory
|
|
179
180
|
const detached = detachPackageVersionsFooter(
|
|
180
181
|
stripRolldownBundleInventoryFooter(
|
|
181
182
|
new TextDecoder('utf-8', { fatal: true }).decode(bundle),
|
package/src/cli-runtime.ts
CHANGED
|
@@ -66,6 +66,12 @@ export async function ensureCliCompanion(root: string): Promise<void> {
|
|
|
66
66
|
|
|
67
67
|
let loaded: { root: string; runtime: typeof CliRuntime } | undefined
|
|
68
68
|
|
|
69
|
+
// build plugins run on machines whose installed runtime may predate this package
|
|
70
|
+
export async function loadCliRuntime(): Promise<typeof CliRuntime> {
|
|
71
|
+
if (!loaded) await ensureCliCompanion(peachRuntimeRoot())
|
|
72
|
+
return getCliRuntime()
|
|
73
|
+
}
|
|
74
|
+
|
|
69
75
|
// select once per runtime, verify before evaluation, and retain the real functions
|
|
70
76
|
// so host serializers receive their implementation rather than a forwarding closure.
|
|
71
77
|
export function getCliRuntime(): typeof CliRuntime {
|
|
@@ -233,6 +233,7 @@ export function readExpoDiscovery(key: string): ExpoSwiftSourceUnit[] | null | u
|
|
|
233
233
|
for (const [directory, expected] of Object.entries(parsed.frameworks)) {
|
|
234
234
|
if (frameworkDigest(directory) !== expected) return undefined
|
|
235
235
|
}
|
|
236
|
+
saveFileHashes()
|
|
236
237
|
} catch {
|
|
237
238
|
return undefined
|
|
238
239
|
}
|
|
@@ -291,6 +292,68 @@ export function readExpoDiscovery(key: string): ExpoSwiftSourceUnit[] | null | u
|
|
|
291
292
|
|
|
292
293
|
const sourceLocationLine = /^#sourceLocation\(file: "(.*)", line: 1\)$/
|
|
293
294
|
|
|
295
|
+
// a warm read re-verifies every framework file; a file whose stat is unchanged
|
|
296
|
+
// reuses its saved hash, as the swift sdk check does.
|
|
297
|
+
const fileHashes = new Map<string, { stamp: string; checksum: string }>()
|
|
298
|
+
let fileHashesLoaded = false
|
|
299
|
+
let fileHashesChanged = false
|
|
300
|
+
|
|
301
|
+
function fileHashesPath(): string {
|
|
302
|
+
return path.join(sharedDir(), 'framework-file-hashes.json')
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
function stampedFileHash(file: string): string {
|
|
306
|
+
if (!fileHashesLoaded) {
|
|
307
|
+
fileHashesLoaded = true
|
|
308
|
+
try {
|
|
309
|
+
const saved: unknown = JSON.parse(fs.readFileSync(fileHashesPath(), 'utf8'))
|
|
310
|
+
if (isRecord(saved))
|
|
311
|
+
for (const [entry, value] of Object.entries(saved))
|
|
312
|
+
if (
|
|
313
|
+
Array.isArray(value) &&
|
|
314
|
+
typeof value[0] === 'string' &&
|
|
315
|
+
typeof value[1] === 'string'
|
|
316
|
+
)
|
|
317
|
+
fileHashes.set(entry, { stamp: value[0], checksum: value[1] })
|
|
318
|
+
} catch {
|
|
319
|
+
// an unreadable save starts empty; every file is hashed again
|
|
320
|
+
fileHashes.clear()
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
const stat = fs.statSync(file, { bigint: true })
|
|
324
|
+
const stamp = [stat.dev, stat.ino, stat.size, stat.mtimeNs, stat.ctimeNs].join(':')
|
|
325
|
+
const cached = fileHashes.get(file)
|
|
326
|
+
if (cached?.stamp === stamp) return cached.checksum
|
|
327
|
+
const checksum = createHash('sha256').update(fs.readFileSync(file)).digest('hex')
|
|
328
|
+
fileHashes.set(file, { stamp, checksum })
|
|
329
|
+
fileHashesChanged = true
|
|
330
|
+
return checksum
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
function saveFileHashes(): void {
|
|
334
|
+
if (!fileHashesChanged) return
|
|
335
|
+
fileHashesChanged = false
|
|
336
|
+
const target = fileHashesPath()
|
|
337
|
+
const temporary = `${target}.${process.pid}.${randomUUID()}.tmp`
|
|
338
|
+
// a failed save only costs the next process the hashing it skipped
|
|
339
|
+
try {
|
|
340
|
+
fs.mkdirSync(path.dirname(target), { recursive: true })
|
|
341
|
+
fs.writeFileSync(
|
|
342
|
+
temporary,
|
|
343
|
+
JSON.stringify(
|
|
344
|
+
Object.fromEntries(
|
|
345
|
+
[...fileHashes]
|
|
346
|
+
.filter(([entry]) => fs.existsSync(entry))
|
|
347
|
+
.map(([entry, { stamp, checksum }]) => [entry, [stamp, checksum]]),
|
|
348
|
+
),
|
|
349
|
+
),
|
|
350
|
+
)
|
|
351
|
+
fs.renameSync(temporary, target)
|
|
352
|
+
} catch {
|
|
353
|
+
fs.rmSync(temporary, { force: true })
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
|
|
294
357
|
// digest a framework tree the way the collector traverses it: every file by
|
|
295
358
|
// bytes, every link by target, each directory once.
|
|
296
359
|
function treeDigest(directory: string, signal?: AbortSignal): Map<string, string> {
|
|
@@ -311,10 +374,7 @@ function treeDigest(directory: string, signal?: AbortSignal): Map<string, string
|
|
|
311
374
|
} else if (child.isDirectory()) {
|
|
312
375
|
walk(file)
|
|
313
376
|
} else if (child.isFile()) {
|
|
314
|
-
entries.set(
|
|
315
|
-
relative,
|
|
316
|
-
`file\0${createHash('sha256').update(fs.readFileSync(file)).digest('hex')}`,
|
|
317
|
-
)
|
|
377
|
+
entries.set(relative, `file\0${stampedFileHash(file)}`)
|
|
318
378
|
}
|
|
319
379
|
}
|
|
320
380
|
}
|
|
@@ -588,6 +648,7 @@ export function writeExpoDiscovery(options: {
|
|
|
588
648
|
)
|
|
589
649
|
fs.renameSync(tmp, path.join(dir, `${options.key}.json`))
|
|
590
650
|
expireDiscovery(dir, path.join(dir, `${options.key}.json`))
|
|
651
|
+
saveFileHashes()
|
|
591
652
|
return rewritten.units
|
|
592
653
|
} catch (error) {
|
|
593
654
|
if (options.signal?.aborted) throw error
|
|
@@ -43,6 +43,20 @@ export function resolveExpoConfigModule(appDir: string) {
|
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
function hasExpoConfig(projectRoot: string) {
|
|
46
|
+
const packagePath = path.join(projectRoot, 'package.json')
|
|
47
|
+
const manifest: unknown = fs.existsSync(packagePath)
|
|
48
|
+
? JSON.parse(fs.readFileSync(packagePath, 'utf8'))
|
|
49
|
+
: null
|
|
50
|
+
if (isRecord(manifest)) {
|
|
51
|
+
const dependencies = [manifest.dependencies, manifest.devDependencies].filter(
|
|
52
|
+
isRecord,
|
|
53
|
+
)
|
|
54
|
+
if (
|
|
55
|
+
dependencies.some((deps) => 'one' in deps) &&
|
|
56
|
+
!dependencies.some((deps) => 'expo' in deps)
|
|
57
|
+
)
|
|
58
|
+
return false
|
|
59
|
+
}
|
|
46
60
|
const appJsonPath = path.join(projectRoot, 'app.json')
|
|
47
61
|
const appJson: unknown = fs.existsSync(appJsonPath)
|
|
48
62
|
? JSON.parse(fs.readFileSync(appJsonPath, 'utf8'))
|
|
@@ -14,7 +14,11 @@ import {
|
|
|
14
14
|
swiftInterfaceDeclarations,
|
|
15
15
|
withoutSwiftDeclarations,
|
|
16
16
|
} from './swift-compile'
|
|
17
|
-
import {
|
|
17
|
+
import {
|
|
18
|
+
privateSwiftDistributionRoot,
|
|
19
|
+
sourceSwiftCheckout,
|
|
20
|
+
SWIFT_PRIVATE_DISTRIBUTION_ENV,
|
|
21
|
+
} from './swift-toolchain'
|
|
18
22
|
import { simulatorNativeLibrary } from './swift-xcframework'
|
|
19
23
|
import type { SwiftStandin } from './swift-standins'
|
|
20
24
|
|
|
@@ -104,7 +108,10 @@ export function nativeSwiftSlice(
|
|
|
104
108
|
`${standin.module}: configured binary behavior cannot replace a compiled native slice`,
|
|
105
109
|
)
|
|
106
110
|
const distribution = swiftDistributionAt(moduleRoot)
|
|
107
|
-
if (!distribution)
|
|
111
|
+
if (!distribution)
|
|
112
|
+
throw new Error(
|
|
113
|
+
`${standin.module}'s native Swift slice needs a compiled distribution; a source checkout names one with ${SWIFT_PRIVATE_DISTRIBUTION_ENV}`,
|
|
114
|
+
)
|
|
108
115
|
const entry = nativeSwiftSliceEntry(distribution, generator)
|
|
109
116
|
const directory =
|
|
110
117
|
fetchNativeEntry('slice', entry.name, entry.key) ??
|
package/src/swift-compile.ts
CHANGED
|
@@ -7548,6 +7548,29 @@ function compileSwiftProjectOnce(
|
|
|
7548
7548
|
string,
|
|
7549
7549
|
{ file: string; header: string; module: boolean } | null
|
|
7550
7550
|
>()
|
|
7551
|
+
const nativeDeclarations = new Map<string, Set<string>>()
|
|
7552
|
+
for (const [file, contents] of Object.entries(input.files)) {
|
|
7553
|
+
if (!file.endsWith('.modulemap')) continue
|
|
7554
|
+
const name = moduleMapName(contents)
|
|
7555
|
+
const umbrella = /\bumbrella\s+header\s+"([^"]+)"/.exec(contents)?.[1]
|
|
7556
|
+
if (!name || !umbrella) continue
|
|
7557
|
+
const header =
|
|
7558
|
+
input.files[path.posix.join(path.posix.dirname(file), umbrella)]
|
|
7559
|
+
if (header === undefined) continue
|
|
7560
|
+
const included = new Set(
|
|
7561
|
+
[
|
|
7562
|
+
...header.matchAll(/^\s*#\s*(?:import|include)\s*[<"]([^">]+)[">]/gm),
|
|
7563
|
+
].map((match) => path.posix.basename(match[1]!)),
|
|
7564
|
+
)
|
|
7565
|
+
const declarations = nativeDeclarations.get(name) ?? new Set<string>()
|
|
7566
|
+
for (const declaration of swiftInterfaceDeclarations(header))
|
|
7567
|
+
declarations.add(declaration)
|
|
7568
|
+
for (const [candidate, source] of Object.entries(input.files))
|
|
7569
|
+
if (included.has(path.posix.basename(candidate)))
|
|
7570
|
+
for (const declaration of swiftInterfaceDeclarations(source))
|
|
7571
|
+
declarations.add(declaration)
|
|
7572
|
+
nativeDeclarations.set(name, declarations)
|
|
7573
|
+
}
|
|
7551
7574
|
const frameworkInterface = (
|
|
7552
7575
|
name: string,
|
|
7553
7576
|
): { file: string; header: string; module: boolean } | null => {
|
|
@@ -7578,10 +7601,14 @@ function compileSwiftProjectOnce(
|
|
|
7578
7601
|
readFileSync(path.join(headers, file), 'utf8'),
|
|
7579
7602
|
))
|
|
7580
7603
|
declared.add(name)
|
|
7604
|
+
for (const declaration of nativeDeclarations.get(name) ?? [])
|
|
7605
|
+
declared.add(declaration)
|
|
7581
7606
|
const own = withoutSwiftDeclarations(
|
|
7582
7607
|
clangInterfaceHeader(readFileSync(source, 'utf8')),
|
|
7583
7608
|
declared,
|
|
7584
|
-
|
|
7609
|
+
nativeDeclarations.has(name)
|
|
7610
|
+
? `@import ${name};`
|
|
7611
|
+
: `#import <${name}/${name}.h>`,
|
|
7585
7612
|
)
|
|
7586
7613
|
// the swift module also implements classes another framework's headers
|
|
7587
7614
|
// already define; clang takes those from the owning framework
|
package/src/swift-standins.ts
CHANGED
|
@@ -453,10 +453,13 @@ export function binaryHeaderSearchPaths(
|
|
|
453
453
|
const name = path.basename(framework, '.framework')
|
|
454
454
|
if (!declaredFrameworks) continue
|
|
455
455
|
const imports = declaredFrameworks.imports.get(name)
|
|
456
|
-
const swift =
|
|
456
|
+
const swift =
|
|
457
|
+
!REACH_STAGED_FRAMEWORKS.has(name) &&
|
|
458
|
+
imports &&
|
|
459
|
+
swiftModuleInterface(declaredFrameworks.moduleRoot, name)
|
|
457
460
|
const compiled = declaredFrameworks.compiledImports.get(name)
|
|
458
461
|
if (swift) declared.set(framework, { ...swift, imports, sdkHeader: null })
|
|
459
|
-
else if (compiled && REACH_STAGED_FRAMEWORKS.has(name)) {
|
|
462
|
+
else if ((compiled || imports) && REACH_STAGED_FRAMEWORKS.has(name)) {
|
|
460
463
|
const sdkHeader = path.join(
|
|
461
464
|
swiftSharedSdkRoot(
|
|
462
465
|
declaredFrameworks.moduleRoot,
|
|
@@ -468,7 +471,7 @@ export function binaryHeaderSearchPaths(
|
|
|
468
471
|
declared.set(framework, {
|
|
469
472
|
declared: null,
|
|
470
473
|
header: null,
|
|
471
|
-
imports: compiled,
|
|
474
|
+
imports: compiled ?? new Set(),
|
|
472
475
|
sdkHeader: fs.readFileSync(sdkHeader, 'utf8'),
|
|
473
476
|
})
|
|
474
477
|
}
|
package/src/swift-wasm-prune.ts
CHANGED
|
@@ -714,6 +714,35 @@ function parseWasmObjectBytes(
|
|
|
714
714
|
}
|
|
715
715
|
}
|
|
716
716
|
|
|
717
|
+
// swift places constant metadata in one explicit .rodata segment, and the
|
|
718
|
+
// assembler folds a relative pointer between two symbols of that segment
|
|
719
|
+
// into a constant with no relocation (a generic requirement's protocol, a
|
|
720
|
+
// nested type's parent). a relocation-free word that lands on another
|
|
721
|
+
// symbol's start, past swift's two low int-pair flag bits, keeps that symbol
|
|
722
|
+
// live as a relocation would; a coincidental match only keeps extra data.
|
|
723
|
+
const relocatedWords = new Map<number, Set<number>>()
|
|
724
|
+
for (const r of dataRelocList) {
|
|
725
|
+
let words = relocatedWords.get(r.segIdx)
|
|
726
|
+
if (!words) relocatedWords.set(r.segIdx, (words = new Set()))
|
|
727
|
+
words.add(r.offInSeg)
|
|
728
|
+
}
|
|
729
|
+
for (const [segIdx, tops] of segTopSyms) {
|
|
730
|
+
const starts = new Map(tops.map((top) => [top.off, top.symIdx]))
|
|
731
|
+
const relocated = relocatedWords.get(segIdx)
|
|
732
|
+
const payload = dataStart + sPayloadStarts[segIdx]!
|
|
733
|
+
const view = new DataView(buf.buffer, buf.byteOffset + payload)
|
|
734
|
+
for (const top of tops) {
|
|
735
|
+
for (let at = top.off; at + 4 <= top.end; at += 4) {
|
|
736
|
+
if (relocated?.has(at)) continue
|
|
737
|
+
const target = starts.get(at + (view.getInt32(at, true) & ~3))
|
|
738
|
+
if (target === undefined || target === top.symIdx) continue
|
|
739
|
+
let list = symDataRelocs.get(top.symIdx)
|
|
740
|
+
if (!list) symDataRelocs.set(top.symIdx, (list = []))
|
|
741
|
+
list.push(target)
|
|
742
|
+
}
|
|
743
|
+
}
|
|
744
|
+
}
|
|
745
|
+
|
|
717
746
|
const typePrefixesInObj = new Set<string>()
|
|
718
747
|
for (let i = 0; i < symKind.length; i++) {
|
|
719
748
|
if (
|
package/src/vite-plugin-one.ts
CHANGED
|
@@ -21,7 +21,7 @@ import { WebSocket, WebSocketServer } from 'ws'
|
|
|
21
21
|
import { resolveAppProject } from '../cli/app-project'
|
|
22
22
|
import { loadRNXAppConfig } from './app-config'
|
|
23
23
|
import { DEFAULT_SOOTSIM_BRIDGE_PORT } from './bridge-constants'
|
|
24
|
-
import {
|
|
24
|
+
import { loadCliRuntime } from './cli-runtime'
|
|
25
25
|
import { matchConfigModule, PEACH_WORKSPACE_MODULE_MARKER } from './config'
|
|
26
26
|
import {
|
|
27
27
|
launchRnxDesktop,
|
|
@@ -164,8 +164,8 @@ export function peachPlugin(options: PeachPluginOptions = {}): Plugin {
|
|
|
164
164
|
async generateBundle(_options, bundle) {
|
|
165
165
|
if (options.enabled === false || dev) return
|
|
166
166
|
const versions = readInstalledNativePackageVersions(root)
|
|
167
|
-
const { attachRolldownBundleInventory } =
|
|
168
|
-
|
|
167
|
+
const { attachRolldownBundleInventory } = (await loadCliRuntime())
|
|
168
|
+
.rolldown_bundle_inventory
|
|
169
169
|
for (const output of Object.values(bundle)) {
|
|
170
170
|
if (output.type !== 'chunk') continue
|
|
171
171
|
output.code = await attachRolldownBundleInventory(
|
package/src/xcode-project.ts
CHANGED
|
@@ -642,6 +642,21 @@ interface TargetRef {
|
|
|
642
642
|
target: PlistDict
|
|
643
643
|
}
|
|
644
644
|
|
|
645
|
+
type HeaderPhaseFile = { file: string; visibility: 'Public' | 'Private' | 'Project' }
|
|
646
|
+
|
|
647
|
+
let developerDir: string | undefined
|
|
648
|
+
function selectedDeveloperDir(): string {
|
|
649
|
+
developerDir ??=
|
|
650
|
+
process.platform === 'darwin'
|
|
651
|
+
? // runner-toolchain-platform: darwin
|
|
652
|
+
execFileSync('xcode-select', ['-p'], {
|
|
653
|
+
encoding: 'utf8',
|
|
654
|
+
stdio: ['ignore', 'pipe', 'pipe'],
|
|
655
|
+
}).trim()
|
|
656
|
+
: ''
|
|
657
|
+
return developerDir
|
|
658
|
+
}
|
|
659
|
+
|
|
645
660
|
// the configuration a project builds when nothing names one: xcode's run
|
|
646
661
|
// action builds Debug, else the list's default.
|
|
647
662
|
function defaultConfiguration(project: LoadedProject): string {
|
|
@@ -741,20 +756,12 @@ function targetSettings(
|
|
|
741
756
|
resolving.delete(marker)
|
|
742
757
|
return value
|
|
743
758
|
}
|
|
744
|
-
let developerDir: string | undefined
|
|
745
759
|
// export derived settings too, just as explicit project settings are exported.
|
|
746
760
|
const derivedSettings: Record<string, () => string> = {
|
|
747
761
|
DEVELOPER_DIR: () =>
|
|
748
762
|
options.environment?.DEVELOPER_DIR ??
|
|
749
763
|
process.env.DEVELOPER_DIR ??
|
|
750
|
-
(
|
|
751
|
-
process.platform === 'darwin'
|
|
752
|
-
? // runner-toolchain-platform: darwin
|
|
753
|
-
execFileSync('xcode-select', ['-p'], {
|
|
754
|
-
encoding: 'utf8',
|
|
755
|
-
stdio: ['ignore', 'pipe', 'pipe'],
|
|
756
|
-
}).trim()
|
|
757
|
-
: ''),
|
|
764
|
+
selectedDeveloperDir(),
|
|
758
765
|
PRODUCT_NAME: () => get('TARGET_NAME'),
|
|
759
766
|
PRODUCT_MODULE_NAME: () => applyOperator(get('PRODUCT_NAME'), 'c99extidentifier'),
|
|
760
767
|
EXECUTABLE_NAME: () => get('PRODUCT_NAME'),
|
|
@@ -2040,9 +2047,16 @@ export function readXcodeAppTarget(
|
|
|
2040
2047
|
visit(app)
|
|
2041
2048
|
|
|
2042
2049
|
// a target's headers build phase, each header with the visibility it publishes.
|
|
2043
|
-
const
|
|
2044
|
-
|
|
2045
|
-
|
|
2050
|
+
const headerPhases = new Map<string, HeaderPhaseFile[]>()
|
|
2051
|
+
const headerPhase = (ref: TargetRef): HeaderPhaseFile[] => {
|
|
2052
|
+
const key = `${ref.project.xcodeproj}\0${ref.id}`
|
|
2053
|
+
const cached = headerPhases.get(key)
|
|
2054
|
+
if (cached) return cached
|
|
2055
|
+
const files = readHeaderPhase(ref)
|
|
2056
|
+
headerPhases.set(key, files)
|
|
2057
|
+
return files
|
|
2058
|
+
}
|
|
2059
|
+
const readHeaderPhase = (ref: TargetRef): HeaderPhaseFile[] =>
|
|
2046
2060
|
list(ref.target.buildPhases).flatMap((phaseId) => {
|
|
2047
2061
|
const phase = ref.project.object(phaseId)
|
|
2048
2062
|
if (phase?.isa !== 'PBXHeadersBuildPhase') return []
|
|
@@ -2064,6 +2078,24 @@ export function readXcodeAppTarget(
|
|
|
2064
2078
|
]
|
|
2065
2079
|
})
|
|
2066
2080
|
})
|
|
2081
|
+
// every published header of the project's non-framework targets, by product.
|
|
2082
|
+
const projectNonFrameworkHeaders = new Map<LoadedProject, Map<string, string>>()
|
|
2083
|
+
const nonFrameworkHeadersOf = (project: LoadedProject): Map<string, string> => {
|
|
2084
|
+
const cached = projectNonFrameworkHeaders.get(project)
|
|
2085
|
+
if (cached) return cached
|
|
2086
|
+
const headers = new Map<string, string>()
|
|
2087
|
+
for (const other of projectTargets(project)) {
|
|
2088
|
+
if (FRAMEWORK_PRODUCTS.has(str(other.target.productType) ?? '')) continue
|
|
2089
|
+
const otherProduct = productName(other)
|
|
2090
|
+
for (const { file, visibility } of headerPhase(other)) {
|
|
2091
|
+
if (visibility === 'Project') continue
|
|
2092
|
+
const key = `${otherProduct}/${path.basename(file)}`
|
|
2093
|
+
if (!headers.has(key)) headers.set(key, file)
|
|
2094
|
+
}
|
|
2095
|
+
}
|
|
2096
|
+
projectNonFrameworkHeaders.set(project, headers)
|
|
2097
|
+
return headers
|
|
2098
|
+
}
|
|
2067
2099
|
const productNames = new Map<string, string>()
|
|
2068
2100
|
const productName = (ref: TargetRef) => {
|
|
2069
2101
|
const key = `${ref.project.xcodeproj}\0${ref.id}`
|
|
@@ -2343,16 +2375,7 @@ export function readXcodeAppTarget(
|
|
|
2343
2375
|
const qualified = `${product}/${name}`
|
|
2344
2376
|
if (!ownHeaders.has(qualified)) ownHeaders.set(qualified, file)
|
|
2345
2377
|
}
|
|
2346
|
-
const nonFrameworkHeaders =
|
|
2347
|
-
for (const other of projectTargets(ref.project)) {
|
|
2348
|
-
if (FRAMEWORK_PRODUCTS.has(str(other.target.productType) ?? '')) continue
|
|
2349
|
-
const otherProduct = productName(other)
|
|
2350
|
-
for (const { file, visibility } of headerPhase(other)) {
|
|
2351
|
-
if (visibility === 'Project') continue
|
|
2352
|
-
const key = `${otherProduct}/${path.basename(file)}`
|
|
2353
|
-
if (!nonFrameworkHeaders.has(key)) nonFrameworkHeaders.set(key, file)
|
|
2354
|
-
}
|
|
2355
|
-
}
|
|
2378
|
+
const nonFrameworkHeaders = nonFrameworkHeadersOf(ref.project)
|
|
2356
2379
|
const wrapper = path.join(settings('BUILT_PRODUCTS_DIR'), `${product}.framework`)
|
|
2357
2380
|
const moduleMap =
|
|
2358
2381
|
(settings('DEFINES_MODULE') === 'YES' || !framework) && settings('MODULEMAP_FILE')
|
|
@@ -2649,7 +2672,7 @@ export function readXcodeAppTarget(
|
|
|
2649
2672
|
nativeTargets.add(ref)
|
|
2650
2673
|
for (const dependency of dependenciesOf(ref)) includeNativeTarget(dependency)
|
|
2651
2674
|
}
|
|
2652
|
-
for (const { ref, module } of builtTargets)
|
|
2675
|
+
for (const { ref, module } of builtTargets.slice(0, -1))
|
|
2653
2676
|
if (
|
|
2654
2677
|
options.nativeModules?.some(
|
|
2655
2678
|
(name) => name === module.moduleName || name === module.name,
|