@vxrn/react-native-prebuilt 1.25.5 → 1.25.7

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.
@@ -0,0 +1,265 @@
1
+ import { mustReplace } from "@vxrn/utils";
2
+ import { transformFlowBabel } from "@vxrn/vite-flow";
3
+ import { build } from "esbuild";
4
+ import FSExtra from "fs-extra";
5
+ import { readFile } from "fs/promises";
6
+ import { createRequire } from "module";
7
+ var requireResolve = "url" in import.meta ? createRequire(import.meta.url).resolve : require.resolve;
8
+ var external = ["react", "react/jsx-runtime", "react/jsx-dev-runtime"];
9
+ async function buildReactJSX() {
10
+ var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
11
+ var _options_define;
12
+ var isProd = ((_options_define = options.define) === null || _options_define === void 0 ? void 0 : _options_define["__DEV__"]) === "false";
13
+ return build({
14
+ bundle: true,
15
+ entryPoints: [requireResolve("react/jsx-dev-runtime")],
16
+ format: "cjs",
17
+ target: "node16",
18
+ jsx: "transform",
19
+ jsxFactory: "react",
20
+ allowOverwrite: true,
21
+ platform: "node",
22
+ define: {
23
+ __DEV__: "true",
24
+ "process.env.NODE_ENV": `"development"`
25
+ },
26
+ external,
27
+ logLevel: "warning",
28
+ ...options
29
+ }).then(async function () {
30
+ var bundled = await readFile(options.outfile, "utf-8");
31
+ var outCode = `
32
+ const run = () => {
33
+ ${mustReplace(bundled, [...(isProd ? [{
34
+ // react 18 and 19 (18 has _min)
35
+ find: /module\.exports = require_react_jsx_runtime_production([a-z_]*)\(\);/,
36
+ replace: `return require_react_jsx_runtime_production$1();`
37
+ }] : [{
38
+ find: `module.exports = require_react_jsx_dev_runtime_development();`,
39
+ replace: `return require_react_jsx_dev_runtime_development();`
40
+ }]), {
41
+ find: `process.env.VXRN_REACT_19`,
42
+ replace: "false",
43
+ optional: true
44
+ }, {
45
+ find: `Object.assign(exports, eval("require('@vxrn/vendor/react-jsx-19')"));`,
46
+ optional: true,
47
+ replace: ``
48
+ }])}
49
+ }
50
+ const __mod__ = run()
51
+ ${["jsx", "jsxs", "jsxDEV", "Fragment"].map(function (n) {
52
+ return `export const ${n} = __mod__.${n} || __mod__.jsx || ${function () {
53
+ if (n === "jsxs") {
54
+ return "function (type, props, key) { return __mod__.jsxDEV(type, props, key, true) }";
55
+ }
56
+ return "__mod__.jsxDEV";
57
+ }()}`;
58
+ }).join("\n")}
59
+ `;
60
+ await FSExtra.writeFile(options.outfile, outCode);
61
+ });
62
+ }
63
+ async function buildReact() {
64
+ var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
65
+ var _options_define;
66
+ var isProd = ((_options_define = options.define) === null || _options_define === void 0 ? void 0 : _options_define["__DEV__"]) === "false";
67
+ return build({
68
+ bundle: true,
69
+ entryPoints: [requireResolve("react")],
70
+ format: "cjs",
71
+ target: "node16",
72
+ jsx: "transform",
73
+ jsxFactory: "react",
74
+ allowOverwrite: true,
75
+ platform: "node",
76
+ define: {
77
+ __DEV__: "true",
78
+ "process.env.NODE_ENV": `"development"`
79
+ },
80
+ logLevel: "warning",
81
+ external,
82
+ ...options
83
+ }).then(async function () {
84
+ var bundled = await readFile(options.outfile, "utf-8");
85
+ var outCode = `
86
+ const run = () => {
87
+ ${mustReplace(bundled, [isProd ? {
88
+ find: /module\.exports = require_react_production([a-z_]*)\(\);/,
89
+ replace: "return require_react_production$1();"
90
+ } : {
91
+ find: /module\.exports = require_react_development([a-z_]*)\(\);/,
92
+ replace: "return require_react_development$1();"
93
+ }, {
94
+ find: `process.env.VXRN_REACT_19`,
95
+ optional: true,
96
+ replace: "false"
97
+ }, {
98
+ find: `Object.assign(exports, eval("require('@vxrn/vendor/react-19')"));`,
99
+ optional: true,
100
+ replace: ``
101
+ }])}
102
+ }
103
+ const __mod__ = run()
104
+ ${RExports.map(function (n) {
105
+ return `export const ${n} = __mod__.${n}`;
106
+ }).join("\n")}
107
+ export default __mod__
108
+ `;
109
+ await FSExtra.writeFile(options.outfile, outCode);
110
+ });
111
+ }
112
+ async function buildReactNative() {
113
+ var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {},
114
+ {
115
+ platform
116
+ } = arguments.length > 1 ? arguments[1] : void 0;
117
+ return build({
118
+ bundle: true,
119
+ entryPoints: [requireResolve("react-native")],
120
+ format: "cjs",
121
+ target: "node20",
122
+ allowOverwrite: true,
123
+ platform: "node",
124
+ external,
125
+ loader: {
126
+ ".png": "dataurl",
127
+ ".jpg": "dataurl",
128
+ ".jpeg": "dataurl",
129
+ ".gif": "dataurl"
130
+ },
131
+ define: {
132
+ __DEV__: "true",
133
+ "process.env.NODE_ENV": `"development"`
134
+ },
135
+ logLevel: "warning",
136
+ resolveExtensions: [`.${platform}.js`, ".native.js", ".js", ".jsx", ".json", ".mjs"],
137
+ ...options,
138
+ plugins: [{
139
+ name: "remove-flow",
140
+ setup(build2) {
141
+ build2.onResolve({
142
+ filter: /HMRClient/
143
+ }, async function (input) {
144
+ var path = requireResolve("@vxrn/vite-native-hmr");
145
+ var possibleEsmPath = path.replace("/cjs/index.cjs", "/esm/index.native.js");
146
+ if (FSExtra.pathExistsSync(possibleEsmPath)) {
147
+ return {
148
+ path: possibleEsmPath
149
+ };
150
+ }
151
+ return {
152
+ path
153
+ };
154
+ });
155
+ build2.onLoad({
156
+ filter: /.*\.js$/
157
+ }, async function (input) {
158
+ if (!input.path.includes("react-native") && !input.path.includes(`vite-native-hmr`)) {
159
+ return;
160
+ }
161
+ var code = await readFile(input.path, "utf-8");
162
+ var outagain = await transformFlowBabel(code, {
163
+ development: true,
164
+ path: input.path
165
+ });
166
+ if (input.path.endsWith("react-native/index.js")) {
167
+ outagain = outagain.replace(/module\.exports *= *{/, `
168
+ module.exports = {
169
+ get _vxrnInternalReactNativeVersionDoNotUse() {
170
+ return require("./Libraries/Core/ReactNativeVersion").default;
171
+ },
172
+ `.trim());
173
+ }
174
+ return {
175
+ contents: outagain,
176
+ loader: "jsx"
177
+ };
178
+ });
179
+ }
180
+ }]
181
+ }).then(async function () {
182
+ var bundled = await readFile(options.outfile, "utf-8");
183
+ var outCode = `
184
+ const run = () => {
185
+ ${mustReplace(bundled, [{
186
+ find: esbuildCommonJSFunction,
187
+ replace: `
188
+ // replaced commonjs function to allow importing internals
189
+ var __commonJS = function __commonJS(cb, mod) {
190
+ var path = __getOwnPropNames(cb)[0];
191
+ var modulePath = path.replace(/.*node_modules\\//, '').replace('.js', '');
192
+
193
+ var __require = function require() {
194
+ if (mod) return mod;
195
+
196
+ var cachedMod = globalThis["__cachedModules"][modulePath];
197
+ if (cachedMod) return cachedMod;
198
+
199
+ var moduleFn = cb[path];
200
+ try {
201
+ mod = {
202
+ exports: {}
203
+ };
204
+ moduleFn(mod.exports, mod);
205
+ mod = mod.exports;
206
+ } catch (e) {
207
+ // match esbuild: don't leave a half-initialized module cached
208
+ throw mod = 0, e;
209
+ }
210
+ // this is one of our patches basically allowing importing the inner contents:
211
+ globalThis["__cachedModules"][modulePath] = mod;
212
+ return mod;
213
+ };
214
+
215
+ // this is another patch basically allowing importing the inner contents:
216
+ if (globalThis['__RN_INTERNAL_MODULE_REQUIRES_MAP__']) {
217
+ globalThis['__RN_INTERNAL_MODULE_REQUIRES_MAP__'][modulePath] = __require;
218
+ }
219
+
220
+ return __require;
221
+ };
222
+ `
223
+ }, {
224
+ find: /module\.exports = require_(react_native|index)\(\);/,
225
+ replace: [`const rn = require_$1();`, `rn.AssetRegistry = require_registry();`, `require_ReactFabric();`,
226
+ // This is react-native/Libraries/Renderer/shims/ReactFabric.js, we call it here to ensure shims are initialized since we won't lazy load React Native components. See the NOTE below.
227
+ `if (typeof require_InitializeCore === 'function') { require_InitializeCore(); }`,
228
+ // 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.
229
+ `return rn;`].join("\n")
230
+ },
231
+ // improve error logs a lot including stack of original error
232
+ {
233
+ find: `originalMessage = e.message || "";`,
234
+ replace: `originalMessage = "" + (e.stack || "");`
235
+ }])}
236
+ }
237
+ const RN = run()
238
+
239
+ export const REACT_NATIVE_ESM_MANUAL_EXPORTS_START = 'REACT_NATIVE_ESM_MANUAL_EXPORTS_START';${ /* NOTE: The `REACT_NATIVE_ESM_MANUAL_EXPORTS_*` vars here are used by other tools to replace exports in this section with a CJS `module.export` which supports dynamic loaded lazy exports, if CJS can be used - such as in a React Native bundle. */
240
+ ""}
241
+ ${RNExportNames.map(function (n) {
242
+ return `export const ${n} = RN.${n}`;
243
+ }).join("\n")}
244
+ export const REACT_NATIVE_ESM_MANUAL_EXPORTS_END = 'REACT_NATIVE_ESM_MANUAL_EXPORTS_END';
245
+ `;
246
+ await FSExtra.writeFile(options.outfile, outCode);
247
+ });
248
+ }
249
+ var esbuildCommonJSFunction = `var __commonJS = (cb, mod) => function require() {
250
+ try {
251
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
252
+ } catch (e) {
253
+ throw mod = 0, e;
254
+ }
255
+ };`;
256
+ var 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", "useAnimatedValueXY", "useAnimatedColor", "useColorScheme", "usePressability", "useWindowDimensions", "UTFSequence", "Vibration", "DeviceEventEmitter", "DynamicColorIOS", "EventEmitter", "NativeAppEventEmitter", "NativeModules", "Platform", "PlatformColor", "processColor", "requireNativeComponent", "RootTagContext", "AssetRegistry"];
257
+ var RExports = ["Children", "Component", "Fragment", "Profiler", "PureComponent", "StrictMode", "Suspense", "__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",
258
+ // For React 18
259
+ "__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE",
260
+ // For React 19
261
+ "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",
262
+ // Added in React 19
263
+ "act", "cache", "unstable_useCacheRefresh", "use", "useActionState", "useOptimistic"];
264
+ export { RExports, RNExportNames, buildReact, buildReactJSX, buildReactNative };
265
+ //# sourceMappingURL=index.native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["mustReplace","transformFlowBabel","build","FSExtra","readFile","createRequire","requireResolve","import","meta","url","resolve","require","external","buildReactJSX","options","arguments","length","_options_define","isProd","define","bundle","entryPoints","format","target","jsx","jsxFactory","allowOverwrite","platform","__DEV__","logLevel","then","bundled","outfile","outCode","find","replace","optional","map","n","join","writeFile","buildReact","RExports","buildReactNative","loader","resolveExtensions","plugins","name","setup","build2","onResolve","filter","input","path","possibleEsmPath","pathExistsSync","onLoad","includes","code","outagain","development","endsWith","trim","contents","esbuildCommonJSFunction","RNExportNames"],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,WAAA,QAAm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ACA,gBACA,sBACA,0BACF,SAEO,YAAM,EACX,YACA,gBACA,uBACA,aACA,2BACA,oBACA,sBACA,sCACA,0CACA,eACA,aACA,sBACA,mBACA,gBACA,yBACA,iBACA,YACA,iBACA,gBACA,0BACA,kBACA;AACA,IACAvB,QAAA,IACA,YACA,aACA,YACA,YACA,iBACA,cACA,YACA;AACA;AACA;AACA;AACA,iCAEA,iBACA,iBACA,aACA,cACA,kBACA,QACF,Q","ignoreList":[]}
@@ -0,0 +1,11 @@
1
+ import { describe, expect, it } from "vitest";
2
+ import { RExports } from "./index.mjs";
3
+ describe("RExports", () => {
4
+ it("should contain all keys that the `react` package exports", async () => {
5
+ const React = (await import("react")).default;
6
+ for (const key in React) {
7
+ expect(RExports).toContain(key);
8
+ }
9
+ });
10
+ });
11
+ //# sourceMappingURL=index.test.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["describe","expect","it","RExports","React","default","key","toContain"],"sources":["../../src/index.test.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,QAAA,EAAUC,MAAA,EAAQC,EAAA,QAAU;AAErC,SAASC,QAAA,QAAgB;AAEzBH,QAAA,CAAS,YAAY,MAAM;EACzBE,EAAA,CAAG,4DAA4D,YAAY;IACzE,MAAME,KAAA,IAAS,MAAM,OAAO,OAAO,GAAGC,OAAA;IAEtC,WAAWC,GAAA,IAAOF,KAAA,EAAO;MACvBH,MAAA,CAAOE,QAAQ,EAAEI,SAAA,CAAUD,GAAG;IAChC;EACF,CAAC;AACH,CAAC","ignoreList":[]}
@@ -0,0 +1,11 @@
1
+ import { describe, expect, it } from "vitest";
2
+ import { RExports } from "./index.native.js";
3
+ describe("RExports", function () {
4
+ it("should contain all keys that the `react` package exports", async function () {
5
+ var React = (await import("react")).default;
6
+ for (var key in React) {
7
+ expect(RExports).toContain(key);
8
+ }
9
+ });
10
+ });
11
+ //# sourceMappingURL=index.test.native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["describe","expect","it","RExports","React","default","key","toContain"],"sources":["../../src/index.test.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,QAAA,EAAUC,MAAA,EAAQC,EAAA,QAAU;AAErC,SAASC,QAAA,QAAgB;AAEzBH,QAAA,CAAS,YAAY,YAAM;EACzBE,EAAA,CAAG,4DAA4D,kBAAY;IACzE,IAAAE,KAAM,UAAS,MAAM,QAAO,GAAOC,OAAG;IAEtC,SAAAC,GAAW,IAAAF,KAAO;MAChBH,MAAA,CAAOE,QAAQ,EAAEI,SAAA,CAAUD,GAAG;IAChC;EACF,CAAC;AACH,CAAC","ignoreList":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vxrn/react-native-prebuilt",
3
- "version": "1.25.5",
3
+ "version": "1.25.7",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "exports": {
@@ -31,9 +31,9 @@
31
31
  "watch": "tamagui-build --watch"
32
32
  },
33
33
  "dependencies": {
34
- "@vxrn/utils": "1.25.5",
35
- "@vxrn/vite-flow": "1.25.5",
36
- "@vxrn/vite-native-hmr": "1.25.5",
34
+ "@vxrn/utils": "1.25.7",
35
+ "@vxrn/vite-flow": "1.25.7",
36
+ "@vxrn/vite-native-hmr": "1.25.7",
37
37
  "esbuild": "^0.25.12",
38
38
  "fs-extra": "^11.2.0",
39
39
  "import-meta-resolve": "^4.1.0"
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAS,KAAK,YAAY,EAAE,MAAM,SAAS,CAAA;AAWlD,wBAAsB,aAAa,CAAC,OAAO,GAAE,YAAiB,iBAmE7D;AAED,wBAAsB,UAAU,CAAC,OAAO,GAAE,YAAiB,iBAoD1D;AAED,wBAAsB,gBAAgB,CACpC,OAAO,EAAE,YAAY,YAAK,EAC1B,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,KAAK,GAAG,SAAS,CAAA;CAAE,iBA+J9C;AAUD,eAAO,MAAM,aAAa,UAgFzB,CAAA;AAED,eAAO,MAAM,QAAQ,UA4CpB,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.test.d.ts","sourceRoot":"","sources":["../src/index.test.ts"],"names":[],"mappings":""}