vxrn 1.21.0 → 1.21.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.
@@ -1 +1 @@
1
- {"version":3,"file":"native-prelude.d.ts","sourceRoot":"","sources":["../../src/runtime/native-prelude.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE;IACxC,GAAG,EAAE,OAAO,CAAA;IACZ,QAAQ,EAAE,MAAM,CAAA;IAChB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,GAAG,MAAM,CA6GT"}
1
+ {"version":3,"file":"native-prelude.d.ts","sourceRoot":"","sources":["../../src/runtime/native-prelude.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE;IACxC,GAAG,EAAE,OAAO,CAAA;IACZ,QAAQ,EAAE,MAAM,CAAA;IAChB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,GAAG,MAAM,CA+FT"}
@@ -6,6 +6,8 @@
6
6
  * https://github.com/leegeunhyeok/rollipop
7
7
  */
8
8
  import type { Plugin } from 'rolldown';
9
+ /** SWC `env.include` for Hermes-compatible downleveling; see HERMES_CLASS_TRANSFORMS. */
10
+ export declare function getHermesSWCIncludes(dev: boolean): string[];
9
11
  interface NativeDevEngineOptions {
10
12
  root: string;
11
13
  port: number;
@@ -74,5 +76,31 @@ export declare function buildNativeBundle(options: NativeBuildOptions): Promise<
74
76
  code: string;
75
77
  map?: string;
76
78
  }>;
79
+ /**
80
+ * alias react-native's Metro HMR client (`Libraries/Utilities/HMRClient`) to a
81
+ * no-op module.
82
+ *
83
+ * vxrn drives Fast Refresh itself over the rolldown-runtime WebSocket and never
84
+ * speaks Metro's `/hot` protocol. On the new architecture, react-native
85
+ * `registerCallableModule('HMRClient', require('./HMRClient'))`s its real client
86
+ * eagerly at startup before vxrn's late override runs, and `emplace` keeps
87
+ * that first registration. RN's client then opens a `MetroHMRClient` socket that
88
+ * receives vxrn's `hmr:*` frames it can't parse and red-boxes
89
+ * `unknown-message [object Object]` on every edit.
90
+ *
91
+ * neutralizing the module at its source means RN registers *this* no-op as the
92
+ * one-and-only `HMRClient` (working with `emplace`, so it's arch-agnostic) and
93
+ * the stray socket is never opened. The class-shaped surface
94
+ * (`setup`/`enable`/`disable`/`registerBundle`/`log`/`isEnabled`) mirrors the
95
+ * methods RN calls on it.
96
+ */
97
+ export declare function hmrClientNoopPlugin(): Plugin;
98
+ /**
99
+ * Pipe files through @vxrn/compiler's babel transforms.
100
+ * Handles reanimated worklet compilation, async generator downleveling,
101
+ * react-native codegen, react compiler, and react-refresh (dev only) —
102
+ * same pipeline as metro, single babel pass per file.
103
+ */
104
+ export declare function vxrnCompilerPlugin(platform: string, dev: boolean): Plugin;
77
105
  export {};
78
106
  //# sourceMappingURL=createNativeDevEngine.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"createNativeDevEngine.d.ts","sourceRoot":"","sources":["../../src/utils/createNativeDevEngine.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAKH,OAAO,KAAK,EAA+B,MAAM,EAAkB,MAAM,UAAU,CAAA;AAQnF,UAAU,sBAAsB;IAC9B,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,KAAK,GAAG,SAAS,CAAA;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAA;IAClB,WAAW,CAAC,EAAE,CAAC,MAAM,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAA;CAChE;AAED,UAAU,qBAAqB;IAC7B,MAAM,EAAE,GAAG,CAAA;IACX,SAAS,EAAE,MAAM,OAAO,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC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