@vxrn/react-native-prebuilt 1.1.537 → 1.1.539

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,26 +1,36 @@
1
1
  "use strict";
2
+
2
3
  var __create = Object.create;
3
4
  var __defProp = Object.defineProperty;
4
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
6
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __getProtoOf = Object.getPrototypeOf,
8
+ __hasOwnProp = Object.prototype.hasOwnProperty;
7
9
  var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: !0 });
10
- }, __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from == "object" || typeof from == "function")
12
- for (let key of __getOwnPropNames(from))
13
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- return to;
15
- };
10
+ for (var name in all) __defProp(target, name, {
11
+ get: all[name],
12
+ enumerable: !0
13
+ });
14
+ },
15
+ __copyProps = (to, from, except, desc) => {
16
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
17
+ get: () => from[key],
18
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
19
+ });
20
+ return to;
21
+ };
16
22
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
17
23
  // If the importer is in node compatibility mode or this is not an ESM
18
24
  // file that has been converted to a CommonJS file using a Babel-
19
25
  // compatible transform (i.e. "__esModule" has not been set), then set
20
26
  // "default" to the CommonJS "module.exports" for node compatibility.
21
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
22
- mod
23
- )), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
27
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
28
+ value: mod,
29
+ enumerable: !0
30
+ }) : target, mod)),
31
+ __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
32
+ value: !0
33
+ }), mod);
24
34
  var index_exports = {};
25
35
  __export(index_exports, {
26
36
  RExports: () => RExports,
@@ -30,20 +40,22 @@ __export(index_exports, {
30
40
  buildReactNative: () => buildReactNative
31
41
  });
32
42
  module.exports = __toCommonJS(index_exports);
33
- var import_promises = require("node:fs/promises"), import_utils = require("@vxrn/utils"), import_vite_flow = require("@vxrn/vite-flow"), import_esbuild = require("esbuild"), import_fs_extra = __toESM(require("fs-extra"), 1), import_node_module = require("node:module");
43
+ var import_promises = require("fs/promises"),
44
+ import_utils = require("@vxrn/utils"),
45
+ import_vite_flow = require("@vxrn/vite-flow"),
46
+ import_esbuild = require("esbuild"),
47
+ import_fs_extra = __toESM(require("fs-extra"), 1),
48
+ import_module = require("module");
34
49
  const import_meta = {};
35
- var requireResolve = "url" in import_meta ? (0, import_node_module.createRequire)(import_meta.url).resolve : require.resolve, external = [
36
- "react",
37
- "react/jsx-runtime",
38
- "react/jsx-dev-runtime"
39
- ];
50
+ var requireResolve = "url" in import_meta ? (0, import_module.createRequire)(import_meta.url).resolve : require.resolve,
51
+ external = ["react", "react/jsx-runtime", "react/jsx-dev-runtime"];
40
52
  async function buildReactJSX() {
41
- var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, _options_define, isProd = ((_options_define = options.define) === null || _options_define === void 0 ? void 0 : _options_define.__DEV__) === "false";
53
+ var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {},
54
+ _options_define,
55
+ isProd = ((_options_define = options.define) === null || _options_define === void 0 ? void 0 : _options_define.__DEV__) === "false";
42
56
  return (0, import_esbuild.build)({
43
57
  bundle: !0,
44
- entryPoints: [
45
- requireResolve("react/jsx-dev-runtime")
46
- ],
58
+ entryPoints: [requireResolve("react/jsx-dev-runtime")],
47
59
  format: "cjs",
48
60
  target: "node16",
49
61
  jsx: "transform",
@@ -57,57 +69,45 @@ async function buildReactJSX() {
57
69
  external,
58
70
  logLevel: "warning",
59
71
  ...options
60
- }).then(async function() {
61
- var bundled = await (0, import_promises.readFile)(options.outfile, "utf-8"), outCode = `
72
+ }).then(async function () {
73
+ var bundled = await (0, import_promises.readFile)(options.outfile, "utf-8"),
74
+ outCode = `
62
75
  const run = () => {
63
- ${(0, import_utils.mustReplace)(bundled, [
64
- ...isProd ? [
65
- {
66
- // react 18 and 19 (18 has _min)
67
- find: /module\.exports = require_react_jsx_runtime_production([a-z_]*)\(\);/,
68
- replace: "return require_react_jsx_runtime_production$1();"
69
- }
70
- ] : [
71
- {
72
- find: "module.exports = require_react_jsx_dev_runtime_development();",
73
- replace: "return require_react_jsx_dev_runtime_development();"
74
- }
75
- ],
76
- {
76
+ ${(0, import_utils.mustReplace)(bundled, [...(isProd ? [{
77
+ // react 18 and 19 (18 has _min)
78
+ find: /module\.exports = require_react_jsx_runtime_production([a-z_]*)\(\);/,
79
+ replace: "return require_react_jsx_runtime_production$1();"
80
+ }] : [{
81
+ find: "module.exports = require_react_jsx_dev_runtime_development();",
82
+ replace: "return require_react_jsx_dev_runtime_development();"
83
+ }]), {
77
84
  find: "process.env.VXRN_REACT_19",
78
85
  replace: "false",
79
86
  optional: !0
80
- },
81
- {
87
+ }, {
82
88
  find: `Object.assign(exports, eval("require('@vxrn/vendor/react-jsx-19')"));`,
83
89
  optional: !0,
84
90
  replace: ""
85
- }
86
- ])}
91
+ }])}
87
92
  }
88
93
  const __mod__ = run()
89
- ${[
90
- "jsx",
91
- "jsxs",
92
- "jsxDEV",
93
- "Fragment"
94
- ].map(function(n) {
95
- return `export const ${n} = __mod__.${n} || __mod__.jsx || ${/* @__PURE__ */ function() {
96
- return n === "jsxs" ? "function (type, props, key) { return __mod__.jsxDEV(type, props, key, true) }" : "__mod__.jsxDEV";
97
- }()}`;
98
- }).join(`
94
+ ${["jsx", "jsxs", "jsxDEV", "Fragment"].map(function (n) {
95
+ return `export const ${n} = __mod__.${n} || __mod__.jsx || ${/* @__PURE__ */function () {
96
+ return n === "jsxs" ? "function (type, props, key) { return __mod__.jsxDEV(type, props, key, true) }" : "__mod__.jsxDEV";
97
+ }()}`;
98
+ }).join(`
99
99
  `)}
100
100
  `;
101
101
  await import_fs_extra.default.writeFile(options.outfile, outCode);
102
102
  });
103
103
  }
104
104
  async function buildReact() {
105
- var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, _options_define, isProd = ((_options_define = options.define) === null || _options_define === void 0 ? void 0 : _options_define.__DEV__) === "false";
105
+ var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {},
106
+ _options_define,
107
+ isProd = ((_options_define = options.define) === null || _options_define === void 0 ? void 0 : _options_define.__DEV__) === "false";
106
108
  return (0, import_esbuild.build)({
107
109
  bundle: !0,
108
- entryPoints: [
109
- requireResolve("react")
110
- ],
110
+ entryPoints: [requireResolve("react")],
111
111
  format: "cjs",
112
112
  target: "node16",
113
113
  jsx: "transform",
@@ -121,33 +121,30 @@ async function buildReact() {
121
121
  logLevel: "warning",
122
122
  external,
123
123
  ...options
124
- }).then(async function() {
125
- var bundled = await (0, import_promises.readFile)(options.outfile, "utf-8"), outCode = `
124
+ }).then(async function () {
125
+ var bundled = await (0, import_promises.readFile)(options.outfile, "utf-8"),
126
+ outCode = `
126
127
  const run = () => {
127
- ${(0, import_utils.mustReplace)(bundled, [
128
- isProd ? {
128
+ ${(0, import_utils.mustReplace)(bundled, [isProd ? {
129
129
  find: /module\.exports = require_react_production([a-z_]*)\(\);/,
130
130
  replace: "return require_react_production$1();"
131
131
  } : {
132
132
  find: /module\.exports = require_react_development([a-z_]*)\(\);/,
133
133
  replace: "return require_react_development$1();"
134
- },
135
- {
134
+ }, {
136
135
  find: "process.env.VXRN_REACT_19",
137
136
  optional: !0,
138
137
  replace: "false"
139
- },
140
- {
138
+ }, {
141
139
  find: `Object.assign(exports, eval("require('@vxrn/vendor/react-19')"));`,
142
140
  optional: !0,
143
141
  replace: ""
144
- }
145
- ])}
142
+ }])}
146
143
  }
147
144
  const __mod__ = run()
148
- ${RExports.map(function(n) {
149
- return `export const ${n} = __mod__.${n}`;
150
- }).join(`
145
+ ${RExports.map(function (n) {
146
+ return `export const ${n} = __mod__.${n}`;
147
+ }).join(`
151
148
  `)}
152
149
  export default __mod__
153
150
  `;
@@ -155,12 +152,14 @@ async function buildReact() {
155
152
  });
156
153
  }
157
154
  async function buildReactNative() {
158
- var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, { platform, enableExperimentalReactNativeWithReact19Support = !1 } = arguments.length > 1 ? arguments[1] : void 0;
155
+ var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {},
156
+ {
157
+ platform,
158
+ enableExperimentalReactNativeWithReact19Support = !1
159
+ } = arguments.length > 1 ? arguments[1] : void 0;
159
160
  return (0, import_esbuild.build)({
160
161
  bundle: !0,
161
- entryPoints: [
162
- requireResolve("react-native")
163
- ],
162
+ entryPoints: [requireResolve("react-native")],
164
163
  format: "cjs",
165
164
  target: "node20",
166
165
  // Note: JSX is actually being transformed by the "remove-flow" plugin defined underneath, not by esbuild. The following JSX options may not actually make a difference.
@@ -180,74 +179,63 @@ async function buildReactNative() {
180
179
  "process.env.NODE_ENV": '"development"'
181
180
  },
182
181
  logLevel: "warning",
183
- resolveExtensions: [
184
- `.${platform}.js`,
185
- ".native.js",
186
- ".native.ts",
187
- ".native.tsx",
188
- ".js",
189
- ".jsx",
190
- ".json",
191
- ".ts",
192
- ".tsx",
193
- ".mjs"
194
- ],
182
+ resolveExtensions: [`.${platform}.js`, ".native.js", ".native.ts", ".native.tsx", ".js", ".jsx", ".json", ".ts", ".tsx", ".mjs"],
195
183
  ...options,
196
- plugins: [
197
- {
198
- name: "remove-flow",
199
- setup(build2) {
200
- build2.onResolve({
201
- filter: /HMRClient/
202
- }, async function(input) {
203
- var path = requireResolve("@vxrn/vite-native-hmr"), possibleEsmPath = path.replace("/cjs/index.cjs", "/esm/index.native.js");
204
- return import_fs_extra.default.pathExistsSync(possibleEsmPath) ? {
205
- path: possibleEsmPath
206
- } : {
207
- path
208
- };
209
- }), build2.onLoad({
210
- filter: /.*\.js$/
211
- }, async function(input) {
212
- if (!(!input.path.includes("react-native") && !input.path.includes("vite-native-hmr"))) {
213
- if (enableExperimentalReactNativeWithReact19Support) {
214
- if (input.path.includes("Libraries/Renderer/implementations/ReactFabric")) {
215
- var reactFabricRendererPath = requireResolve(`@vxrn/react-native-prebuilt/vendor/rn-react-19-support/ReactFabric-${input.path.endsWith("-dev.js") ? "dev" : "prod"}.js`);
216
- return {
217
- contents: await (0, import_promises.readFile)(reactFabricRendererPath, "utf-8"),
218
- loader: "js"
219
- };
220
- }
221
- if (input.path.includes("Libraries/Renderer/implementations/ReactNativeRenderer")) {
222
- var reactNativeRendererPath = requireResolve(`@vxrn/react-native-prebuilt/vendor/rn-react-19-support/ReactNativeRenderer-${input.path.endsWith("-dev.js") ? "dev" : "prod"}.js`);
223
- return {
224
- contents: await (0, import_promises.readFile)(reactNativeRendererPath, "utf-8"),
225
- loader: "js"
226
- };
227
- }
184
+ plugins: [{
185
+ name: "remove-flow",
186
+ setup(build2) {
187
+ build2.onResolve({
188
+ filter: /HMRClient/
189
+ }, async function (input) {
190
+ var path = requireResolve("@vxrn/vite-native-hmr"),
191
+ possibleEsmPath = path.replace("/cjs/index.cjs", "/esm/index.native.js");
192
+ return import_fs_extra.default.pathExistsSync(possibleEsmPath) ? {
193
+ path: possibleEsmPath
194
+ } : {
195
+ path
196
+ };
197
+ }), build2.onLoad({
198
+ filter: /.*\.js$/
199
+ }, async function (input) {
200
+ if (!(!input.path.includes("react-native") && !input.path.includes("vite-native-hmr"))) {
201
+ if (enableExperimentalReactNativeWithReact19Support) {
202
+ if (input.path.includes("Libraries/Renderer/implementations/ReactFabric")) {
203
+ var reactFabricRendererPath = requireResolve(`@vxrn/react-native-prebuilt/vendor/rn-react-19-support/ReactFabric-${input.path.endsWith("-dev.js") ? "dev" : "prod"}.js`);
204
+ return {
205
+ contents: await (0, import_promises.readFile)(reactFabricRendererPath, "utf-8"),
206
+ loader: "js"
207
+ };
208
+ }
209
+ if (input.path.includes("Libraries/Renderer/implementations/ReactNativeRenderer")) {
210
+ var reactNativeRendererPath = requireResolve(`@vxrn/react-native-prebuilt/vendor/rn-react-19-support/ReactNativeRenderer-${input.path.endsWith("-dev.js") ? "dev" : "prod"}.js`);
211
+ return {
212
+ contents: await (0, import_promises.readFile)(reactNativeRendererPath, "utf-8"),
213
+ loader: "js"
214
+ };
228
215
  }
229
- var code = await (0, import_promises.readFile)(input.path, "utf-8"), outagain = await (0, import_vite_flow.transformFlow)(code, {
216
+ }
217
+ var code = await (0, import_promises.readFile)(input.path, "utf-8"),
218
+ outagain = await (0, import_vite_flow.transformFlow)(code, {
230
219
  development: !0
231
220
  });
232
- return input.path.endsWith("react-native/index.js") && (outagain = outagain.replace(/module\.exports *= *{/, `
221
+ return input.path.endsWith("react-native/index.js") && (outagain = outagain.replace(/module\.exports *= *{/, `
233
222
  module.exports = {
234
223
  get _vxrnInternalReactNativeVersionDoNotUse() {
235
224
  return require("./Libraries/Core/ReactNativeVersion").default;
236
225
  },
237
226
  `.trim())), {
238
- contents: outagain,
239
- loader: "jsx"
240
- };
241
- }
242
- });
243
- }
227
+ contents: outagain,
228
+ loader: "jsx"
229
+ };
230
+ }
231
+ });
244
232
  }
245
- ]
246
- }).then(async function() {
247
- var bundled = await (0, import_promises.readFile)(options.outfile, "utf-8"), outCode = `
233
+ }]
234
+ }).then(async function () {
235
+ var bundled = await (0, import_promises.readFile)(options.outfile, "utf-8"),
236
+ outCode = `
248
237
  const run = () => {
249
- ${(0, import_utils.mustReplace)(bundled, [
250
- {
238
+ ${(0, import_utils.mustReplace)(bundled, [{
251
239
  find: esbuildCommonJSFunction,
252
240
  replace: `
253
241
  // replaced commonjs function to allow importing internals
@@ -280,33 +268,27 @@ var __commonJS = function __commonJS(cb, mod) {
280
268
  return __require;
281
269
  };
282
270
  `
283
- },
284
- {
271
+ }, {
285
272
  find: /module\.exports = require_(react_native|index)\(\)\;/,
286
- replace: [
287
- "const rn = require_$1();",
288
- "rn.AssetRegistry = require_registry();",
289
- "require_ReactNative();",
290
- // This is react-native/Libraries/Renderer/shims/ReactNative.js, we call it here to ensure shims are initialized since we won't lazy load React Native components. See the NOTE below.
291
- "if (typeof require_InitializeCore === 'function') { require_InitializeCore(); }",
292
- // Since we're accessing the RefreshRuntime directly via `__cachedModules` directly in the RN bundle, we need to ensure it's loaded in time. Note that calling `require_react_refresh_runtime_development()`, `require_setUpReactRefresh()` or `require_setUpDeveloperTools()` directly won't work.
293
- "return rn;"
294
- ].join(`
273
+ replace: ["const rn = require_$1();", "rn.AssetRegistry = require_registry();", "require_ReactNative();",
274
+ // This is react-native/Libraries/Renderer/shims/ReactNative.js, we call it here to ensure shims are initialized since we won't lazy load React Native components. See the NOTE below.
275
+ "if (typeof require_InitializeCore === 'function') { require_InitializeCore(); }",
276
+ // Since we're accessing the RefreshRuntime directly via `__cachedModules` directly in the RN bundle, we need to ensure it's loaded in time. Note that calling `require_react_refresh_runtime_development()`, `require_setUpReactRefresh()` or `require_setUpDeveloperTools()` directly won't work.
277
+ "return rn;"].join(`
295
278
  `)
296
279
  },
297
280
  // improve error logs a lot including stack of original error
298
281
  {
299
282
  find: 'originalMessage = e.message || "";',
300
283
  replace: 'originalMessage = "" + (e.stack || "");'
301
- }
302
- ])}
284
+ }])}
303
285
  }
304
286
  const RN = run()
305
287
 
306
288
  export const REACT_NATIVE_ESM_MANUAL_EXPORTS_START = 'REACT_NATIVE_ESM_MANUAL_EXPORTS_START';
307
- ${RNExportNames.map(function(n) {
308
- return `export const ${n} = RN.${n}`;
309
- }).join(`
289
+ ${RNExportNames.map(function (n) {
290
+ return `export const ${n} = RN.${n}`;
291
+ }).join(`
310
292
  `)}
311
293
  export const REACT_NATIVE_ESM_MANUAL_EXPORTS_END = 'REACT_NATIVE_ESM_MANUAL_EXPORTS_END';
312
294
  `;
@@ -315,137 +297,13 @@ var __commonJS = function __commonJS(cb, mod) {
315
297
  }
316
298
  var esbuildCommonJSFunction = `var __commonJS = (cb, mod) => function __require() {
317
299
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
318
- };`, RNExportNames = [
319
- "registerCallableModule",
320
- "AccessibilityInfo",
321
- "ActivityIndicator",
322
- "Button",
323
- "DrawerLayoutAndroid",
324
- "FlatList",
325
- "Image",
326
- "ImageBackground",
327
- "InputAccessoryView",
328
- "KeyboardAvoidingView",
329
- "Modal",
330
- "Pressable",
331
- "RefreshControl",
332
- "SafeAreaView",
333
- "ScrollView",
334
- "SectionList",
335
- "StatusBar",
336
- "Switch",
337
- "Text",
338
- "TextInput",
339
- "Touchable",
340
- "TouchableHighlight",
341
- "TouchableNativeFeedback",
342
- "TouchableOpacity",
343
- "TouchableWithoutFeedback",
344
- "View",
345
- "VirtualizedList",
346
- "VirtualizedSectionList",
347
- "ActionSheetIOS",
348
- "Alert",
349
- "Animated",
350
- "Appearance",
351
- "AppRegistry",
352
- "AppState",
353
- "BackHandler",
354
- "DeviceInfo",
355
- "DevSettings",
356
- "Dimensions",
357
- "Easing",
358
- "findNodeHandle",
359
- "I18nManager",
360
- "InteractionManager",
361
- "Keyboard",
362
- "LayoutAnimation",
363
- "Linking",
364
- "LogBox",
365
- "NativeDialogManagerAndroid",
366
- "NativeEventEmitter",
367
- "Networking",
368
- "PanResponder",
369
- "PermissionsAndroid",
370
- "PixelRatio",
371
- "Settings",
372
- "Share",
373
- "StyleSheet",
374
- "Systrace",
375
- "ToastAndroid",
376
- "TurboModuleRegistry",
377
- "UIManager",
378
- "unstable_batchedUpdates",
379
- "useAnimatedValue",
380
- "useColorScheme",
381
- "useWindowDimensions",
382
- "UTFSequence",
383
- "Vibration",
384
- "YellowBox",
385
- "DeviceEventEmitter",
386
- "DynamicColorIOS",
387
- "NativeAppEventEmitter",
388
- "NativeModules",
389
- "Platform",
390
- "PlatformColor",
391
- "processColor",
392
- "requireNativeComponent",
393
- "RootTagContext",
394
- "unstable_enableLogBox",
395
- "AssetRegistry"
396
- ], RExports = [
397
- "Children",
398
- "Component",
399
- "Fragment",
400
- "Profiler",
401
- "PureComponent",
402
- "StrictMode",
403
- "Suspense",
404
- "__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",
300
+ };`,
301
+ RNExportNames = ["registerCallableModule", "AccessibilityInfo", "ActivityIndicator", "Button", "DrawerLayoutAndroid", "FlatList", "Image", "ImageBackground", "InputAccessoryView", "KeyboardAvoidingView", "Modal", "Pressable", "RefreshControl", "SafeAreaView", "ScrollView", "SectionList", "StatusBar", "Switch", "Text", "TextInput", "Touchable", "TouchableHighlight", "TouchableNativeFeedback", "TouchableOpacity", "TouchableWithoutFeedback", "View", "VirtualizedList", "VirtualizedSectionList", "ActionSheetIOS", "Alert", "Animated", "Appearance", "AppRegistry", "AppState", "BackHandler", "DeviceInfo", "DevSettings", "Dimensions", "Easing", "findNodeHandle", "I18nManager", "InteractionManager", "Keyboard", "LayoutAnimation", "Linking", "LogBox", "NativeDialogManagerAndroid", "NativeEventEmitter", "Networking", "PanResponder", "PermissionsAndroid", "PixelRatio", "Settings", "Share", "StyleSheet", "Systrace", "ToastAndroid", "TurboModuleRegistry", "UIManager", "unstable_batchedUpdates", "useAnimatedValue", "useColorScheme", "useWindowDimensions", "UTFSequence", "Vibration", "YellowBox", "DeviceEventEmitter", "DynamicColorIOS", "NativeAppEventEmitter", "NativeModules", "Platform", "PlatformColor", "processColor", "requireNativeComponent", "RootTagContext", "unstable_enableLogBox", "AssetRegistry"],
302
+ RExports = ["Children", "Component", "Fragment", "Profiler", "PureComponent", "StrictMode", "Suspense", "__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",
405
303
  // For React 18
406
304
  "__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE",
407
305
  // For React 19
408
- "cloneElement",
409
- "createContext",
410
- "createElement",
411
- "createFactory",
412
- "createRef",
413
- "forwardRef",
414
- "isValidElement",
415
- "lazy",
416
- "memo",
417
- "startTransition",
418
- "unstable_act",
419
- "useCallback",
420
- "useContext",
421
- "useDebugValue",
422
- "useDeferredValue",
423
- "useEffect",
424
- "useId",
425
- "useImperativeHandle",
426
- "useInsertionEffect",
427
- "useLayoutEffect",
428
- "useMemo",
429
- "useReducer",
430
- "useRef",
431
- "useState",
432
- "useSyncExternalStore",
433
- "useTransition",
434
- "version",
306
+ "cloneElement", "createContext", "createElement", "createFactory", "createRef", "forwardRef", "isValidElement", "lazy", "memo", "startTransition", "unstable_act", "useCallback", "useContext", "useDebugValue", "useDeferredValue", "useEffect", "useId", "useImperativeHandle", "useInsertionEffect", "useLayoutEffect", "useMemo", "useReducer", "useRef", "useState", "useSyncExternalStore", "useTransition", "version",
435
307
  // Added in React 19
436
- "act",
437
- "cache",
438
- "unstable_useCacheRefresh",
439
- "use",
440
- "useActionState",
441
- "useOptimistic"
442
- ];
443
- // Annotate the CommonJS export names for ESM import in node:
444
- 0 && (module.exports = {
445
- RExports,
446
- RNExportNames,
447
- buildReact,
448
- buildReactJSX,
449
- buildReactNative
450
- });
451
- //# sourceMappingURL=index.js.map
308
+ "act", "cache", "unstable_useCacheRefresh", "use", "useActionState", "useOptimistic"];
309
+ //# sourceMappingURL=index.native.js.map
@@ -1,6 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/index.ts"],
4
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;sBAAyB,6BACzB,eAA4B,wBAC5B,mBAA8B,4BAC9B,iBAAyC,oBACzC,kBAAoB,iCAEpB,qBAA8B;AAN9B;AAQA,IAAMA,iBACJ,SAAS,kBAAcC,kCAAc,YAAYC,GAAG,E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;;;oBAKEgC,KAAI,CAAA,IAIH;gBACLN,UAAUG;gBACVlB,QAAQ;cACV;;UACF,CAAA;QAEJ;MACF;;EAEJ,CAAA,EAAGlB,KAAK,iBAAA;AAEN,QAAMC,UAAU,UAAMC,0BAAShB,QAAQiB,SAAU,OAAA,GAC3CC,UAAU;;YAEZC,0BAAYJ,SAAS;MACrB;QACEK,MAAMkC;QACNjC,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA+BX;MACA;QACED,MAAM;QACNC,SAAS;UACP;UACA;UACA;;UACA;;UACA;UACAI,KAAK;CAAA;MACT;;MAGA;QACEL,MAAM;QACNC,SAAS;MACX;KACD,CAAA;;;;;MAKDkC,cAAchC,IAAI,SAACC,GAAAA;aAAM,gBAAgBA,CAAAA,SAAUA,CAAAA;OAAKC,KAAK;CAAA,CAAA;;;AAG/D,UAAMC,gBAAAA,QAAQC,UAAU3B,QAAQiB,SAAUC,OAAAA;EAC5C,CAAA;AACF;AAEA,IAAMoC,0BAA0B;;KAInBC,gBAAgB;EAC3B;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;GAGW1B,WAAW;EACtB;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;EACA;;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;EAEA;EACA;EACA;EACA;EACA;EACA;;",
5
- "names": ["requireResolve", "createRequire", "url", "resolve", "require", "external", "buildReactJSX", "options", "isProd", "define", "build", "bundle", "entryPoints", "format", "target", "jsx", "jsxFactory", "allowOverwrite", "platform", "__DEV__", "logLevel", "then", "bundled", "readFile", "outfile", "outCode", "mustReplace", "find", "replace", "optional", "map", "n", "join", "FSExtra", "writeFile", "buildReact", "RExports", "buildReactNative", "enableExperimentalReactNativeWithReact19Support", "loader", "resolveExtensions", "plugins", "name", "setup", "onResolve", "filter", "input", "path", "possibleEsmPath", "pathExistsSync", "onLoad", "includes", "reactFabricRendererPath", "endsWith", "contents", "reactNativeRendererPath", "code", "outagain", "transformFlow", "development", "trim", "esbuildCommonJSFunction", "RNExportNames"]
6
- }
1
+ {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","index_exports","__export","RExports","RNExportNames","buildReact","buildReactJSX","buildReactNative","module","exports","import_promises","require","import_utils","import_vite_flow","import_esbuild","import_fs_extra","__toESM","import_module","import_meta","requireResolve","createRequire","url","resolve","external","options","arguments","length","_options_define","isProd","define","__DEV__","build","bundle","entryPoints","format","target","jsx","jsxFactory","allowOverwrite","platform","logLevel","then","bundled","readFile","outfile","outCode","mustReplace","find","replace","optional","map","n","join","default","writeFile","enableExperimentalReactNativeWithReact19Support","loader","resolveExtensions","plugins","name","setup","build2","onResolve","filter","input","path","possibleEsmPath","pathExistsSync","onLoad","includes","reactFabricRendererPath","endsWith","contents","reactNativeRendererPath","code","outagain","transformFlow","development","trim","esbuildCommonJSFunction"],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAAA;EAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;IAAAC,KAAA;EAAA,IAAAH,GAAA;AAAA,IAAAI,aAAA;AAAAC,QAAA,CAAAD,aAAA;EAAAE,QAAA,EAAAA,CAAA,KAAAA,QAAA;EAAAC,aAAA,EAAAA,CAAA,KAAAA,aA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AAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA+BX;AACA;AACQ;AACG;AACP;AACA;AACA;AAAA;AACA;AAAA;AACA;AACK;AAAI;AACb;MAGA;QAEED,IAAA,wDAAS;QACXC,OAAA,GACA;QAAA;QAAA;QAKF;QAAsV,cAAAI,IAAA;AAAA;MAGxV;MACD;MACH;QAEML,IAAA,sCAA0B;QAAAC,OAAA;MAInB,EACX;AAAA;AACA;AACA;AACA;AACA,MACA5C,aAAA,CAAA8C,GAAA,WAAAC,CAAA;QACA,uBAAAA,CAAA,SAAAA,CAAA;MACA,GAAAC,IAAA;AAAA,EACA;AAAA;AACA,KACA;IACA,MAAArC,eAAA,CAAAsC,OAAA,CAAAC,SAAA,CAAA9B,OAAA,CAAAoB,OAAA,EAAAC,OAAA;EACA;AAAA;AACA,IACAkC,uBAAA;AAAA;AACA,GACA;EAAA3E,aAAA,IACA,0BACA,qBACA,qBACA,UACA,uBACA,YACA,SACA,mBACA,sBACA,wBACA,SACA,aACA,kBACA,gBACA,cACA,eACA,aACA,UACA,QACA,aACA,aACA,sBACA,2BACA,oBACA,4BACA,QACA,mBACA,0BACA,kBACA,SACA,YACA,cACA,eACA,YACA,eACA,cACA,eACA,cACA,UACA,kBACA,eACA,sBACA,YACA,mBACA,WACA,UACA,8BACA,sBACA,cACA,gBACA,sBACA,cACA,YACA,SACA,cACA,YACA,gBACA,uBACA,aACA,+CACF,gBAEwB,EACtB,uBACA,eACA,aACA,aACA,sBACA,mBACA,yBACA,6BACA,iCACA,0BACA,kBACA,yBACA;EACAD,QAAA,IACA,YACA,aACA,YACA,YACA,iBACA,cACA,YACA;EACA;EACA;EACA;EACA,gBACA,iBACA,iBACA,iBACA,aACA,cACA,kBACA,QACA,QACA,mBACA,+BAEA,cACA,iBACA,oBACA,aACA,SACA,uBACF,sB","ignoreList":[]}
@@ -1,29 +1,33 @@
1
1
  "use strict";
2
+
2
3
  var __create = Object.create;
3
4
  var __defProp = Object.defineProperty;
4
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
6
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __getProtoOf = Object.getPrototypeOf,
8
+ __hasOwnProp = Object.prototype.hasOwnProperty;
7
9
  var __copyProps = (to, from, except, desc) => {
8
- if (from && typeof from == "object" || typeof from == "function")
9
- for (let key of __getOwnPropNames(from))
10
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
10
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
11
+ get: () => from[key],
12
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
13
+ });
11
14
  return to;
12
15
  };
13
16
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
14
- // If the importer is in node compatibility mode or this is not an ESM
15
- // file that has been converted to a CommonJS file using a Babel-
16
- // compatible transform (i.e. "__esModule" has not been set), then set
17
- // "default" to the CommonJS "module.exports" for node compatibility.
18
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
19
- mod
20
- ));
21
- var import_vitest = require("vitest"), import_index = require("./index");
22
- (0, import_vitest.describe)("RExports", function() {
23
- (0, import_vitest.it)("should contain all keys that the `react` package exports", async function() {
17
+ // If the importer is in node compatibility mode or this is not an ESM
18
+ // file that has been converted to a CommonJS file using a Babel-
19
+ // compatible transform (i.e. "__esModule" has not been set), then set
20
+ // "default" to the CommonJS "module.exports" for node compatibility.
21
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
22
+ value: mod,
23
+ enumerable: !0
24
+ }) : target, mod));
25
+ var import_vitest = require("vitest"),
26
+ import_index = require("./index.native.js");
27
+ (0, import_vitest.describe)("RExports", function () {
28
+ (0, import_vitest.it)("should contain all keys that the `react` package exports", async function () {
24
29
  var React = (await import("react")).default;
25
- for (var key in React)
26
- (0, import_vitest.expect)(import_index.RExports).toContain(key);
30
+ for (var key in React) (0, import_vitest.expect)(import_index.RExports).toContain(key);
27
31
  });
28
32
  });
29
- //# sourceMappingURL=index.test.js.map
33
+ //# sourceMappingURL=index.test.native.js.map
@@ -1,6 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/index.test.ts"],
4
- "mappings": ";;;;;;;;;;;;;;;;;;;;AAAA,oBAAqC,mBAErC,eAAwC;IAExCA,wBAAS,YAAY,WAAA;AACnBC,wBAAG,4DAA4D,iBAAA;AAC7D,QAAMC,SAAS,MAAM,OAAO,OAAA,GAAUC;AAEtC,aAAWC,OAAOF;AAChBG,gCAAOC,qBAAAA,EAAUC,UAAUH,GAAAA;EAE/B,CAAA;AACF,CAAA;",
5
- "names": ["describe", "it", "React", "default", "key", "expect", "RExports", "toContain"]
6
- }
1
+ {"version":3,"names":["import_vitest","require","import_index","describe","it","React","default","key","expect","RExports","toContain"],"sources":["../../src/index.test.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;gBAAA;AAEwC,IAExCA,aAAA,GAAAC,OAAA,CAAS;EAAAC,YAAkB,GAAAD,OAAA;AACzB,IAAAD,aAAA,CAAAG,QAAG;EACD,IAAAH,aAAe,CAAAI,EAAA,4DAAuB;IAEtC,IAAAC,KAAA,GAAW,OAAO,iBAAAC,OAAA;IAChB,SAAAC,GAAA,IAAAF,KAAA,EAEH,IAAAL,aAAA,CAAAQ,MAAA,EAAAN,YAAA,CAAAO,QAAA,EAAAC,SAAA,CAAAH,GAAA;EACF","ignoreList":[]}
@@ -1,9 +1,9 @@
1
- import { readFile } from "node:fs/promises";
1
+ import { readFile } from "fs/promises";
2
2
  import { mustReplace } from "@vxrn/utils";
3
3
  import { transformFlow } from "@vxrn/vite-flow";
4
4
  import { build } from "esbuild";
5
5
  import FSExtra from "fs-extra";
6
- import { createRequire } from "node:module";
6
+ import { createRequire } from "module";
7
7
  var requireResolve = "url" in import.meta ? createRequire(import.meta.url).resolve : require.resolve,
8
8
  external = ["react", "react/jsx-runtime", "react/jsx-dev-runtime"];
9
9
  async function buildReactJSX() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vxrn/react-native-prebuilt",
3
- "version": "1.1.537",
3
+ "version": "1.1.539",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "exports": {
@@ -35,15 +35,15 @@
35
35
  "watch": "tamagui-build --watch"
36
36
  },
37
37
  "dependencies": {
38
- "@vxrn/utils": "1.1.537",
39
- "@vxrn/vite-flow": "1.1.537",
40
- "@vxrn/vite-native-hmr": "1.1.537",
38
+ "@vxrn/utils": "1.1.539",
39
+ "@vxrn/vite-flow": "1.1.539",
40
+ "@vxrn/vite-native-hmr": "1.1.539",
41
41
  "esbuild": "~0.24.0",
42
42
  "fs-extra": "^11.2.0",
43
43
  "import-meta-resolve": "^4.1.0"
44
44
  },
45
45
  "devDependencies": {
46
- "@tamagui/build": "^1.132.23",
46
+ "@tamagui/build": "^1.135.6",
47
47
  "react": "~19.0.0",
48
48
  "react-dom": "~19.0.0",
49
49
  "react-native": "~0.79.2",