@vxrn/react-native-prebuilt 1.12.3 → 1.12.5-1774027068540
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/dist/esm/index.js +87 -235
- package/dist/esm/index.js.map +1 -6
- package/package.json +5 -5
- package/dist/cjs/index.js +0 -419
- package/dist/cjs/index.js.map +0 -6
- package/dist/cjs/index.test.js +0 -28
- package/dist/cjs/index.test.js.map +0 -6
- package/dist/esm/index.test.js +0 -10
- package/dist/esm/index.test.js.map +0 -6
package/dist/esm/index.js
CHANGED
|
@@ -4,7 +4,8 @@ import { build } from "esbuild";
|
|
|
4
4
|
import FSExtra from "fs-extra";
|
|
5
5
|
import { readFile } from "node:fs/promises";
|
|
6
6
|
import { createRequire } from "node:module";
|
|
7
|
-
const requireResolve = "url" in import.meta ? createRequire(import.meta.url).resolve : require.resolve,
|
|
7
|
+
const requireResolve = "url" in import.meta ? createRequire(import.meta.url).resolve : require.resolve,
|
|
8
|
+
external = ["react", "react/jsx-runtime", "react/jsx-dev-runtime"];
|
|
8
9
|
async function buildReactJSX(options = {}) {
|
|
9
10
|
const isProd = options.define?.__DEV__ === "false";
|
|
10
11
|
return build({
|
|
@@ -24,33 +25,28 @@ async function buildReactJSX(options = {}) {
|
|
|
24
25
|
logLevel: "warning",
|
|
25
26
|
...options
|
|
26
27
|
}).then(async () => {
|
|
27
|
-
const bundled = await readFile(options.outfile, "utf-8"),
|
|
28
|
+
const bundled = await readFile(options.outfile, "utf-8"),
|
|
29
|
+
outCode = `
|
|
28
30
|
const run = () => {
|
|
29
|
-
${mustReplace(bundled, [
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
]
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
],
|
|
42
|
-
{ find: "process.env.VXRN_REACT_19", replace: "false", optional: !0 },
|
|
43
|
-
{
|
|
31
|
+
${mustReplace(bundled, [...(isProd ? [{
|
|
32
|
+
// react 18 and 19 (18 has _min)
|
|
33
|
+
find: /module\.exports = require_react_jsx_runtime_production([a-z_]*)\(\);/,
|
|
34
|
+
replace: "return require_react_jsx_runtime_production$1();"
|
|
35
|
+
}] : [{
|
|
36
|
+
find: "module.exports = require_react_jsx_dev_runtime_development();",
|
|
37
|
+
replace: "return require_react_jsx_dev_runtime_development();"
|
|
38
|
+
}]), {
|
|
39
|
+
find: "process.env.VXRN_REACT_19",
|
|
40
|
+
replace: "false",
|
|
41
|
+
optional: !0
|
|
42
|
+
}, {
|
|
44
43
|
find: `Object.assign(exports, eval("require('@vxrn/vendor/react-jsx-19')"));`,
|
|
45
44
|
optional: !0,
|
|
46
45
|
replace: ""
|
|
47
|
-
}
|
|
48
|
-
])}
|
|
46
|
+
}])}
|
|
49
47
|
}
|
|
50
48
|
const __mod__ = run()
|
|
51
|
-
${["jsx", "jsxs", "jsxDEV", "Fragment"].map(
|
|
52
|
-
(n) => `export const ${n} = __mod__.${n} || __mod__.jsx || ${n === "jsxs" ? "function (type, props, key) { return __mod__.jsxDEV(type, props, key, true) }" : "__mod__.jsxDEV"}`
|
|
53
|
-
).join(`
|
|
49
|
+
${["jsx", "jsxs", "jsxDEV", "Fragment"].map(n => `export const ${n} = __mod__.${n} || __mod__.jsx || ${n === "jsxs" ? "function (type, props, key) { return __mod__.jsxDEV(type, props, key, true) }" : "__mod__.jsxDEV"}`).join(`
|
|
54
50
|
`)}
|
|
55
51
|
`;
|
|
56
52
|
await FSExtra.writeFile(options.outfile, outCode);
|
|
@@ -75,30 +71,27 @@ async function buildReact(options = {}) {
|
|
|
75
71
|
external,
|
|
76
72
|
...options
|
|
77
73
|
}).then(async () => {
|
|
78
|
-
const bundled = await readFile(options.outfile, "utf-8"),
|
|
74
|
+
const bundled = await readFile(options.outfile, "utf-8"),
|
|
75
|
+
outCode = `
|
|
79
76
|
const run = () => {
|
|
80
|
-
${mustReplace(bundled, [
|
|
81
|
-
isProd ? {
|
|
77
|
+
${mustReplace(bundled, [isProd ? {
|
|
82
78
|
find: /module\.exports = require_react_production([a-z_]*)\(\);/,
|
|
83
79
|
replace: "return require_react_production$1();"
|
|
84
80
|
} : {
|
|
85
81
|
find: /module\.exports = require_react_development([a-z_]*)\(\);/,
|
|
86
82
|
replace: "return require_react_development$1();"
|
|
87
|
-
},
|
|
88
|
-
{
|
|
83
|
+
}, {
|
|
89
84
|
find: "process.env.VXRN_REACT_19",
|
|
90
85
|
optional: !0,
|
|
91
86
|
replace: "false"
|
|
92
|
-
},
|
|
93
|
-
{
|
|
87
|
+
}, {
|
|
94
88
|
find: `Object.assign(exports, eval("require('@vxrn/vendor/react-19')"));`,
|
|
95
89
|
optional: !0,
|
|
96
90
|
replace: ""
|
|
97
|
-
}
|
|
98
|
-
])}
|
|
91
|
+
}])}
|
|
99
92
|
}
|
|
100
93
|
const __mod__ = run()
|
|
101
|
-
${RExports.map(
|
|
94
|
+
${RExports.map(n => `export const ${n} = __mod__.${n}`).join(`
|
|
102
95
|
`)}
|
|
103
96
|
export default __mod__
|
|
104
97
|
`;
|
|
@@ -130,77 +123,61 @@ async function buildReactNative(options = {}, {
|
|
|
130
123
|
logLevel: "warning",
|
|
131
124
|
resolveExtensions: [`.${platform}.js`, ".native.js", ".js", ".jsx", ".json", ".mjs"],
|
|
132
125
|
...options,
|
|
133
|
-
plugins: [
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
126
|
+
plugins: [{
|
|
127
|
+
name: "remove-flow",
|
|
128
|
+
setup(build2) {
|
|
129
|
+
build2.onResolve({
|
|
130
|
+
filter: /HMRClient/
|
|
131
|
+
}, async input => {
|
|
132
|
+
const path = requireResolve("@vxrn/vite-native-hmr"),
|
|
133
|
+
possibleEsmPath = path.replace("/cjs/index.cjs", "/esm/index.native.js");
|
|
134
|
+
return FSExtra.pathExistsSync(possibleEsmPath) ? {
|
|
135
|
+
path: possibleEsmPath
|
|
136
|
+
} : {
|
|
137
|
+
path
|
|
138
|
+
};
|
|
139
|
+
}), build2.onLoad({
|
|
140
|
+
filter: /.*\.js$/
|
|
141
|
+
}, async input => {
|
|
142
|
+
if (!input.path.includes("react-native") && !input.path.includes("vite-native-hmr")) return;
|
|
143
|
+
if (enableExperimentalReactNativeWithReact19Support) {
|
|
144
|
+
if (input.path.includes("Libraries/Renderer/implementations/ReactFabric")) {
|
|
145
|
+
const reactFabricRendererPath = requireResolve(`@vxrn/react-native-prebuilt/vendor/rn-react-19-support/ReactFabric-${input.path.endsWith("-dev.js") ? "dev" : "prod"}.js`);
|
|
146
|
+
return {
|
|
147
|
+
contents: await readFile(reactFabricRendererPath, "utf-8"),
|
|
148
|
+
loader: "js"
|
|
149
|
+
};
|
|
147
150
|
}
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
loader: "js"
|
|
163
|
-
};
|
|
164
|
-
}
|
|
165
|
-
if (input.path.includes(
|
|
166
|
-
"Libraries/Renderer/implementations/ReactNativeRenderer"
|
|
167
|
-
)) {
|
|
168
|
-
const reactNativeRendererPath = requireResolve(
|
|
169
|
-
`@vxrn/react-native-prebuilt/vendor/rn-react-19-support/ReactNativeRenderer-${input.path.endsWith("-dev.js") ? "dev" : "prod"}.js`
|
|
170
|
-
);
|
|
171
|
-
return {
|
|
172
|
-
contents: await readFile(reactNativeRendererPath, "utf-8"),
|
|
173
|
-
loader: "js"
|
|
174
|
-
};
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
const code = await readFile(input.path, "utf-8");
|
|
178
|
-
let outagain = await transformFlowBabel(code, {
|
|
179
|
-
development: !0,
|
|
180
|
-
path: input.path
|
|
181
|
-
});
|
|
182
|
-
return input.path.endsWith("react-native/index.js") && (outagain = outagain.replace(
|
|
183
|
-
/module\.exports *= *{/,
|
|
184
|
-
`
|
|
151
|
+
if (input.path.includes("Libraries/Renderer/implementations/ReactNativeRenderer")) {
|
|
152
|
+
const reactNativeRendererPath = requireResolve(`@vxrn/react-native-prebuilt/vendor/rn-react-19-support/ReactNativeRenderer-${input.path.endsWith("-dev.js") ? "dev" : "prod"}.js`);
|
|
153
|
+
return {
|
|
154
|
+
contents: await readFile(reactNativeRendererPath, "utf-8"),
|
|
155
|
+
loader: "js"
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
const code = await readFile(input.path, "utf-8");
|
|
160
|
+
let outagain = await transformFlowBabel(code, {
|
|
161
|
+
development: !0,
|
|
162
|
+
path: input.path
|
|
163
|
+
});
|
|
164
|
+
return input.path.endsWith("react-native/index.js") && (outagain = outagain.replace(/module\.exports *= *{/, `
|
|
185
165
|
module.exports = {
|
|
186
166
|
get _vxrnInternalReactNativeVersionDoNotUse() {
|
|
187
167
|
return require("./Libraries/Core/ReactNativeVersion").default;
|
|
188
168
|
},
|
|
189
|
-
`.trim()
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
}
|
|
195
|
-
);
|
|
196
|
-
}
|
|
169
|
+
`.trim())), {
|
|
170
|
+
contents: outagain,
|
|
171
|
+
loader: "jsx"
|
|
172
|
+
};
|
|
173
|
+
});
|
|
197
174
|
}
|
|
198
|
-
]
|
|
175
|
+
}]
|
|
199
176
|
}).then(async () => {
|
|
200
|
-
const bundled = await readFile(options.outfile, "utf-8"),
|
|
177
|
+
const bundled = await readFile(options.outfile, "utf-8"),
|
|
178
|
+
outCode = `
|
|
201
179
|
const run = () => {
|
|
202
|
-
${mustReplace(bundled, [
|
|
203
|
-
{
|
|
180
|
+
${mustReplace(bundled, [{
|
|
204
181
|
find: esbuildCommonJSFunction,
|
|
205
182
|
replace: `
|
|
206
183
|
// replaced commonjs function to allow importing internals
|
|
@@ -233,31 +210,25 @@ var __commonJS = function __commonJS(cb, mod) {
|
|
|
233
210
|
return __require;
|
|
234
211
|
};
|
|
235
212
|
`
|
|
236
|
-
},
|
|
237
|
-
{
|
|
213
|
+
}, {
|
|
238
214
|
find: /module\.exports = require_(react_native|index)\(\);/,
|
|
239
|
-
replace: [
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
"if (typeof require_InitializeCore === 'function') { require_InitializeCore(); }",
|
|
245
|
-
// 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.
|
|
246
|
-
"return rn;"
|
|
247
|
-
].join(`
|
|
215
|
+
replace: ["const rn = require_$1();", "rn.AssetRegistry = require_registry();", "require_ReactNative();",
|
|
216
|
+
// 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.
|
|
217
|
+
"if (typeof require_InitializeCore === 'function') { require_InitializeCore(); }",
|
|
218
|
+
// 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.
|
|
219
|
+
"return rn;"].join(`
|
|
248
220
|
`)
|
|
249
221
|
},
|
|
250
222
|
// improve error logs a lot including stack of original error
|
|
251
223
|
{
|
|
252
224
|
find: 'originalMessage = e.message || "";',
|
|
253
225
|
replace: 'originalMessage = "" + (e.stack || "");'
|
|
254
|
-
}
|
|
255
|
-
])}
|
|
226
|
+
}])}
|
|
256
227
|
}
|
|
257
228
|
const RN = run()
|
|
258
229
|
|
|
259
230
|
export const REACT_NATIVE_ESM_MANUAL_EXPORTS_START = 'REACT_NATIVE_ESM_MANUAL_EXPORTS_START';
|
|
260
|
-
${RNExportNames.map(
|
|
231
|
+
${RNExportNames.map(n => `export const ${n} = RN.${n}`).join(`
|
|
261
232
|
`)}
|
|
262
233
|
export const REACT_NATIVE_ESM_MANUAL_EXPORTS_END = 'REACT_NATIVE_ESM_MANUAL_EXPORTS_END';
|
|
263
234
|
`;
|
|
@@ -266,135 +237,16 @@ var __commonJS = function __commonJS(cb, mod) {
|
|
|
266
237
|
}
|
|
267
238
|
const esbuildCommonJSFunction = `var __commonJS = (cb, mod) => function __require() {
|
|
268
239
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
269
|
-
};`,
|
|
270
|
-
"registerCallableModule",
|
|
271
|
-
"AccessibilityInfo",
|
|
272
|
-
"ActivityIndicator",
|
|
273
|
-
"Button",
|
|
274
|
-
"DrawerLayoutAndroid",
|
|
275
|
-
"FlatList",
|
|
276
|
-
"Image",
|
|
277
|
-
"ImageBackground",
|
|
278
|
-
"InputAccessoryView",
|
|
279
|
-
"KeyboardAvoidingView",
|
|
280
|
-
"Modal",
|
|
281
|
-
"Pressable",
|
|
282
|
-
"RefreshControl",
|
|
283
|
-
"SafeAreaView",
|
|
284
|
-
"ScrollView",
|
|
285
|
-
"SectionList",
|
|
286
|
-
"StatusBar",
|
|
287
|
-
"Switch",
|
|
288
|
-
"Text",
|
|
289
|
-
"TextInput",
|
|
290
|
-
"Touchable",
|
|
291
|
-
"TouchableHighlight",
|
|
292
|
-
"TouchableNativeFeedback",
|
|
293
|
-
"TouchableOpacity",
|
|
294
|
-
"TouchableWithoutFeedback",
|
|
295
|
-
"View",
|
|
296
|
-
"VirtualizedList",
|
|
297
|
-
"VirtualizedSectionList",
|
|
298
|
-
"ActionSheetIOS",
|
|
299
|
-
"Alert",
|
|
300
|
-
"Animated",
|
|
301
|
-
"Appearance",
|
|
302
|
-
"AppRegistry",
|
|
303
|
-
"AppState",
|
|
304
|
-
"BackHandler",
|
|
305
|
-
"DeviceInfo",
|
|
306
|
-
"DevSettings",
|
|
307
|
-
"Dimensions",
|
|
308
|
-
"Easing",
|
|
309
|
-
"findNodeHandle",
|
|
310
|
-
"I18nManager",
|
|
311
|
-
"InteractionManager",
|
|
312
|
-
"Keyboard",
|
|
313
|
-
"LayoutAnimation",
|
|
314
|
-
"Linking",
|
|
315
|
-
"LogBox",
|
|
316
|
-
"NativeDialogManagerAndroid",
|
|
317
|
-
"NativeEventEmitter",
|
|
318
|
-
"Networking",
|
|
319
|
-
"PanResponder",
|
|
320
|
-
"PermissionsAndroid",
|
|
321
|
-
"PixelRatio",
|
|
322
|
-
"Settings",
|
|
323
|
-
"Share",
|
|
324
|
-
"StyleSheet",
|
|
325
|
-
"Systrace",
|
|
326
|
-
"ToastAndroid",
|
|
327
|
-
"TurboModuleRegistry",
|
|
328
|
-
"UIManager",
|
|
329
|
-
"unstable_batchedUpdates",
|
|
330
|
-
"useAnimatedValue",
|
|
331
|
-
"useColorScheme",
|
|
332
|
-
"useWindowDimensions",
|
|
333
|
-
"UTFSequence",
|
|
334
|
-
"Vibration",
|
|
335
|
-
"DeviceEventEmitter",
|
|
336
|
-
"DynamicColorIOS",
|
|
337
|
-
"NativeAppEventEmitter",
|
|
338
|
-
"NativeModules",
|
|
339
|
-
"Platform",
|
|
340
|
-
"PlatformColor",
|
|
341
|
-
"processColor",
|
|
342
|
-
"requireNativeComponent",
|
|
343
|
-
"RootTagContext",
|
|
344
|
-
"AssetRegistry"
|
|
240
|
+
};`,
|
|
241
|
+
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", "DeviceEventEmitter", "DynamicColorIOS", "NativeAppEventEmitter", "NativeModules", "Platform", "PlatformColor", "processColor", "requireNativeComponent", "RootTagContext", "AssetRegistry"
|
|
345
242
|
// Normally not exported by React Native, but with a hack we make @react-native/assets-registry/registry available here.
|
|
346
|
-
],
|
|
347
|
-
"Children",
|
|
348
|
-
"Component",
|
|
349
|
-
"Fragment",
|
|
350
|
-
"Profiler",
|
|
351
|
-
"PureComponent",
|
|
352
|
-
"StrictMode",
|
|
353
|
-
"Suspense",
|
|
354
|
-
"__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",
|
|
243
|
+
],
|
|
244
|
+
RExports = ["Children", "Component", "Fragment", "Profiler", "PureComponent", "StrictMode", "Suspense", "__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",
|
|
355
245
|
// For React 18
|
|
356
246
|
"__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE",
|
|
357
247
|
// For React 19
|
|
358
|
-
"cloneElement",
|
|
359
|
-
"createContext",
|
|
360
|
-
"createElement",
|
|
361
|
-
"createFactory",
|
|
362
|
-
"createRef",
|
|
363
|
-
"forwardRef",
|
|
364
|
-
"isValidElement",
|
|
365
|
-
"lazy",
|
|
366
|
-
"memo",
|
|
367
|
-
"startTransition",
|
|
368
|
-
"unstable_act",
|
|
369
|
-
"useCallback",
|
|
370
|
-
"useContext",
|
|
371
|
-
"useDebugValue",
|
|
372
|
-
"useDeferredValue",
|
|
373
|
-
"useEffect",
|
|
374
|
-
"useId",
|
|
375
|
-
"useImperativeHandle",
|
|
376
|
-
"useInsertionEffect",
|
|
377
|
-
"useLayoutEffect",
|
|
378
|
-
"useMemo",
|
|
379
|
-
"useReducer",
|
|
380
|
-
"useRef",
|
|
381
|
-
"useState",
|
|
382
|
-
"useSyncExternalStore",
|
|
383
|
-
"useTransition",
|
|
384
|
-
"version",
|
|
248
|
+
"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",
|
|
385
249
|
// Added in React 19
|
|
386
|
-
"act",
|
|
387
|
-
|
|
388
|
-
"unstable_useCacheRefresh",
|
|
389
|
-
"use",
|
|
390
|
-
"useActionState",
|
|
391
|
-
"useOptimistic"
|
|
392
|
-
];
|
|
393
|
-
export {
|
|
394
|
-
RExports,
|
|
395
|
-
RNExportNames,
|
|
396
|
-
buildReact,
|
|
397
|
-
buildReactJSX,
|
|
398
|
-
buildReactNative
|
|
399
|
-
};
|
|
250
|
+
"act", "cache", "unstable_useCacheRefresh", "use", "useActionState", "useOptimistic"];
|
|
251
|
+
export { RExports, RNExportNames, buildReact, buildReactJSX, buildReactNative };
|
|
400
252
|
//# sourceMappingURL=index.js.map
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1,6 +1 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/index.ts"],
|
|
4
|
-
"mappings": "AAAA,SAAS,mBAAmB;AAC5B,SAAS,0BAA0B;AACnC,SAAS,aAAgC;AACzC,OAAO,aAAa;AACpB,SAAS,gBAAgB;AAEz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AU,OAAO;AAAA,EACnD,CAAC;AACH;AAEA,MAAM,0BAA0B;AAAA;AAAA,KAInB,gBAAgB;AAAA,EAC3B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA;AACF,GAEa,WAAW;AAAA,EACtB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA;AAAA,EACA;AAAA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA;AAAA,EAEA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;",
|
|
5
|
-
"names": ["build"]
|
|
6
|
-
}
|
|
1
|
+
{"version":3,"names":["mustReplace","transformFlowBabel","build","FSExtra","readFile","createRequire","requireResolve","import","meta","url","resolve","require","external","buildReactJSX","options","isProd","define","__DEV__","bundle","entryPoints","format","target","jsx","jsxFactory","allowOverwrite","platform","logLevel","then","bundled","outfile","outCode","find","replace","optional","map","n","join","writeFile","buildReact","RExports","buildReactNative","enableExperimentalReactNativeWithReact19Support","loader","resolveExtensions","plugins","name","setup","build2","onResolve","filter","input","path","possibleEsmPath","pathExistsSync","onLoad","includes","reactFabricRendererPath","endsWith","contents","reactNativeRendererPath","code","outagain","development","trim","esbuildCommonJSFunction","RNExportNames"],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,WAAA,QAAmB;AAC5B,SAASC,kBAAA,QAA0B;AACnC,SAASC,KAAA,QAAgC;AACzC,OAAOC,OAAA,MAAa;AACpB,SAASC,QAAA,QAAgB;AAEzB,SAASC,aAAA,QAAqB;AAE9B,MAAMC,cAAA,GACJ,SAASC,MAAA,CAAAC,IAAA,GAAcH,aAAA,CAAcE,MAAA,CAAAC,IAAA,CAAYC,GAAG,EAAEC,OAAA,GAAUC,OAAA,CAAQD,OAAA;EAEpEE,QAAA,GAAW,CAAC,SAAS,qBAAqB,uBAAuB;AAEvE,eAAsBC,cAAcC,OAAA,GAAwB,CAAC,GAAG;EAC9D,MAAMC,MAAA,GAASD,OAAA,CAAQE,MAAA,EAASC,OAAA,KAAe;EAE/C,OAAOf,KAAA,CAAM;IACXgB,MAAA,EAAQ;IACRC,WAAA,EAAa,CAACb,cAAA,CAAe,uBAAuB,CAAC;IACrDc,MAAA,EAAQ;IACRC,MAAA,EAAQ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;AAAA,CAAI,CAAC;AAAA;AAAA;IAGpE,MAAMjC,OAAA,CAAQkC,SAAA,CAAUvB,OAAA,CAAQe,OAAA,EAAUC,OAAO;EACnD,CAAC;AACH;AAEA,MAAMkC,uBAAA,GAA0B;AAAA;AAAA;EAInBC,aAAA,GAAgB,CAC3B,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,2BACA,oBACA,kBACA,uBACA,eACA,aACA,sBACA,mBACA,yBACA,iBACA,YACA,iBACA,gBACA,0BACA,kBACA;EAAA;EAAA,CACF;EAEa1B,QAAA,GAAW,CACtB,YACA,aACA,YACA,YACA,iBACA,cACA,YACA;EAAA;EACA;EAAA;EACA,gBACA,iBACA,iBACA,iBACA,aACA,cACA,kBACA,QACA,QACA,mBACA,gBACA,eACA,cACA,iBACA,oBACA,aACA,SACA,uBACA,sBACA,mBACA,WACA,cACA,UACA,YACA,wBACA,iBACA;EAAA;EAEA,OACA,SACA,4BACA,OACA,kBACA,gBACF","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vxrn/react-native-prebuilt",
|
|
3
|
-
"version": "1.12.
|
|
3
|
+
"version": "1.12.5-1774027068540",
|
|
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.12.
|
|
39
|
-
"@vxrn/vite-flow": "1.12.
|
|
40
|
-
"@vxrn/vite-native-hmr": "1.12.
|
|
38
|
+
"@vxrn/utils": "1.12.5-1774027068540",
|
|
39
|
+
"@vxrn/vite-flow": "1.12.5-1774027068540",
|
|
40
|
+
"@vxrn/vite-native-hmr": "1.12.5-1774027068540",
|
|
41
41
|
"esbuild": "^0.25.12",
|
|
42
42
|
"fs-extra": "^11.2.0",
|
|
43
43
|
"import-meta-resolve": "^4.1.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@tamagui/build": "2.0.0-rc.
|
|
46
|
+
"@tamagui/build": "2.0.0-rc.28",
|
|
47
47
|
"react": "19.2.0",
|
|
48
48
|
"react-dom": "19.2.0",
|
|
49
49
|
"react-native": "0.83.2",
|
package/dist/cjs/index.js
DELETED
|
@@ -1,419 +0,0 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
9
|
-
}, __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
-
return to;
|
|
14
|
-
};
|
|
15
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
16
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
17
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
18
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
19
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
20
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
|
|
21
|
-
mod
|
|
22
|
-
)), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
23
|
-
var index_exports = {};
|
|
24
|
-
__export(index_exports, {
|
|
25
|
-
RExports: () => RExports,
|
|
26
|
-
RNExportNames: () => RNExportNames,
|
|
27
|
-
buildReact: () => buildReact,
|
|
28
|
-
buildReactJSX: () => buildReactJSX,
|
|
29
|
-
buildReactNative: () => buildReactNative
|
|
30
|
-
});
|
|
31
|
-
module.exports = __toCommonJS(index_exports);
|
|
32
|
-
var 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_promises = require("node:fs/promises"), import_node_module = require("node:module");
|
|
33
|
-
const import_meta = {}, requireResolve = "url" in import_meta ? (0, import_node_module.createRequire)(import_meta.url).resolve : require.resolve, external = ["react", "react/jsx-runtime", "react/jsx-dev-runtime"];
|
|
34
|
-
async function buildReactJSX(options = {}) {
|
|
35
|
-
const isProd = options.define?.__DEV__ === "false";
|
|
36
|
-
return (0, import_esbuild.build)({
|
|
37
|
-
bundle: !0,
|
|
38
|
-
entryPoints: [requireResolve("react/jsx-dev-runtime")],
|
|
39
|
-
format: "cjs",
|
|
40
|
-
target: "node16",
|
|
41
|
-
jsx: "transform",
|
|
42
|
-
jsxFactory: "react",
|
|
43
|
-
allowOverwrite: !0,
|
|
44
|
-
platform: "node",
|
|
45
|
-
define: {
|
|
46
|
-
__DEV__: "true",
|
|
47
|
-
"process.env.NODE_ENV": '"development"'
|
|
48
|
-
},
|
|
49
|
-
external,
|
|
50
|
-
logLevel: "warning",
|
|
51
|
-
...options
|
|
52
|
-
}).then(async () => {
|
|
53
|
-
const bundled = await (0, import_promises.readFile)(options.outfile, "utf-8"), outCode = `
|
|
54
|
-
const run = () => {
|
|
55
|
-
${(0, import_utils.mustReplace)(bundled, [
|
|
56
|
-
...isProd ? [
|
|
57
|
-
{
|
|
58
|
-
// react 18 and 19 (18 has _min)
|
|
59
|
-
find: /module\.exports = require_react_jsx_runtime_production([a-z_]*)\(\);/,
|
|
60
|
-
replace: "return require_react_jsx_runtime_production$1();"
|
|
61
|
-
}
|
|
62
|
-
] : [
|
|
63
|
-
{
|
|
64
|
-
find: "module.exports = require_react_jsx_dev_runtime_development();",
|
|
65
|
-
replace: "return require_react_jsx_dev_runtime_development();"
|
|
66
|
-
}
|
|
67
|
-
],
|
|
68
|
-
{ find: "process.env.VXRN_REACT_19", replace: "false", optional: !0 },
|
|
69
|
-
{
|
|
70
|
-
find: `Object.assign(exports, eval("require('@vxrn/vendor/react-jsx-19')"));`,
|
|
71
|
-
optional: !0,
|
|
72
|
-
replace: ""
|
|
73
|
-
}
|
|
74
|
-
])}
|
|
75
|
-
}
|
|
76
|
-
const __mod__ = run()
|
|
77
|
-
${["jsx", "jsxs", "jsxDEV", "Fragment"].map(
|
|
78
|
-
(n) => `export const ${n} = __mod__.${n} || __mod__.jsx || ${n === "jsxs" ? "function (type, props, key) { return __mod__.jsxDEV(type, props, key, true) }" : "__mod__.jsxDEV"}`
|
|
79
|
-
).join(`
|
|
80
|
-
`)}
|
|
81
|
-
`;
|
|
82
|
-
await import_fs_extra.default.writeFile(options.outfile, outCode);
|
|
83
|
-
});
|
|
84
|
-
}
|
|
85
|
-
async function buildReact(options = {}) {
|
|
86
|
-
const isProd = options.define?.__DEV__ === "false";
|
|
87
|
-
return (0, import_esbuild.build)({
|
|
88
|
-
bundle: !0,
|
|
89
|
-
entryPoints: [requireResolve("react")],
|
|
90
|
-
format: "cjs",
|
|
91
|
-
target: "node16",
|
|
92
|
-
jsx: "transform",
|
|
93
|
-
jsxFactory: "react",
|
|
94
|
-
allowOverwrite: !0,
|
|
95
|
-
platform: "node",
|
|
96
|
-
define: {
|
|
97
|
-
__DEV__: "true",
|
|
98
|
-
"process.env.NODE_ENV": '"development"'
|
|
99
|
-
},
|
|
100
|
-
logLevel: "warning",
|
|
101
|
-
external,
|
|
102
|
-
...options
|
|
103
|
-
}).then(async () => {
|
|
104
|
-
const bundled = await (0, import_promises.readFile)(options.outfile, "utf-8"), outCode = `
|
|
105
|
-
const run = () => {
|
|
106
|
-
${(0, import_utils.mustReplace)(bundled, [
|
|
107
|
-
isProd ? {
|
|
108
|
-
find: /module\.exports = require_react_production([a-z_]*)\(\);/,
|
|
109
|
-
replace: "return require_react_production$1();"
|
|
110
|
-
} : {
|
|
111
|
-
find: /module\.exports = require_react_development([a-z_]*)\(\);/,
|
|
112
|
-
replace: "return require_react_development$1();"
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
find: "process.env.VXRN_REACT_19",
|
|
116
|
-
optional: !0,
|
|
117
|
-
replace: "false"
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
find: `Object.assign(exports, eval("require('@vxrn/vendor/react-19')"));`,
|
|
121
|
-
optional: !0,
|
|
122
|
-
replace: ""
|
|
123
|
-
}
|
|
124
|
-
])}
|
|
125
|
-
}
|
|
126
|
-
const __mod__ = run()
|
|
127
|
-
${RExports.map((n) => `export const ${n} = __mod__.${n}`).join(`
|
|
128
|
-
`)}
|
|
129
|
-
export default __mod__
|
|
130
|
-
`;
|
|
131
|
-
await import_fs_extra.default.writeFile(options.outfile, outCode);
|
|
132
|
-
});
|
|
133
|
-
}
|
|
134
|
-
async function buildReactNative(options = {}, {
|
|
135
|
-
platform,
|
|
136
|
-
enableExperimentalReactNativeWithReact19Support = !1
|
|
137
|
-
}) {
|
|
138
|
-
return (0, import_esbuild.build)({
|
|
139
|
-
bundle: !0,
|
|
140
|
-
entryPoints: [requireResolve("react-native")],
|
|
141
|
-
format: "cjs",
|
|
142
|
-
target: "node20",
|
|
143
|
-
allowOverwrite: !0,
|
|
144
|
-
platform: "node",
|
|
145
|
-
external,
|
|
146
|
-
loader: {
|
|
147
|
-
".png": "dataurl",
|
|
148
|
-
".jpg": "dataurl",
|
|
149
|
-
".jpeg": "dataurl",
|
|
150
|
-
".gif": "dataurl"
|
|
151
|
-
},
|
|
152
|
-
define: {
|
|
153
|
-
__DEV__: "true",
|
|
154
|
-
"process.env.NODE_ENV": '"development"'
|
|
155
|
-
},
|
|
156
|
-
logLevel: "warning",
|
|
157
|
-
resolveExtensions: [`.${platform}.js`, ".native.js", ".js", ".jsx", ".json", ".mjs"],
|
|
158
|
-
...options,
|
|
159
|
-
plugins: [
|
|
160
|
-
{
|
|
161
|
-
name: "remove-flow",
|
|
162
|
-
setup(build2) {
|
|
163
|
-
build2.onResolve(
|
|
164
|
-
{
|
|
165
|
-
filter: /HMRClient/
|
|
166
|
-
},
|
|
167
|
-
async (input) => {
|
|
168
|
-
const path = requireResolve("@vxrn/vite-native-hmr"), possibleEsmPath = path.replace(
|
|
169
|
-
"/cjs/index.cjs",
|
|
170
|
-
"/esm/index.native.js"
|
|
171
|
-
);
|
|
172
|
-
return import_fs_extra.default.pathExistsSync(possibleEsmPath) ? { path: possibleEsmPath } : { path };
|
|
173
|
-
}
|
|
174
|
-
), build2.onLoad(
|
|
175
|
-
{
|
|
176
|
-
filter: /.*\.js$/
|
|
177
|
-
},
|
|
178
|
-
async (input) => {
|
|
179
|
-
if (!input.path.includes("react-native") && !input.path.includes("vite-native-hmr"))
|
|
180
|
-
return;
|
|
181
|
-
if (enableExperimentalReactNativeWithReact19Support) {
|
|
182
|
-
if (input.path.includes("Libraries/Renderer/implementations/ReactFabric")) {
|
|
183
|
-
const reactFabricRendererPath = requireResolve(
|
|
184
|
-
`@vxrn/react-native-prebuilt/vendor/rn-react-19-support/ReactFabric-${input.path.endsWith("-dev.js") ? "dev" : "prod"}.js`
|
|
185
|
-
);
|
|
186
|
-
return {
|
|
187
|
-
contents: await (0, import_promises.readFile)(reactFabricRendererPath, "utf-8"),
|
|
188
|
-
loader: "js"
|
|
189
|
-
};
|
|
190
|
-
}
|
|
191
|
-
if (input.path.includes(
|
|
192
|
-
"Libraries/Renderer/implementations/ReactNativeRenderer"
|
|
193
|
-
)) {
|
|
194
|
-
const reactNativeRendererPath = requireResolve(
|
|
195
|
-
`@vxrn/react-native-prebuilt/vendor/rn-react-19-support/ReactNativeRenderer-${input.path.endsWith("-dev.js") ? "dev" : "prod"}.js`
|
|
196
|
-
);
|
|
197
|
-
return {
|
|
198
|
-
contents: await (0, import_promises.readFile)(reactNativeRendererPath, "utf-8"),
|
|
199
|
-
loader: "js"
|
|
200
|
-
};
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
const code = await (0, import_promises.readFile)(input.path, "utf-8");
|
|
204
|
-
let outagain = await (0, import_vite_flow.transformFlowBabel)(code, {
|
|
205
|
-
development: !0,
|
|
206
|
-
path: input.path
|
|
207
|
-
});
|
|
208
|
-
return input.path.endsWith("react-native/index.js") && (outagain = outagain.replace(
|
|
209
|
-
/module\.exports *= *{/,
|
|
210
|
-
`
|
|
211
|
-
module.exports = {
|
|
212
|
-
get _vxrnInternalReactNativeVersionDoNotUse() {
|
|
213
|
-
return require("./Libraries/Core/ReactNativeVersion").default;
|
|
214
|
-
},
|
|
215
|
-
`.trim()
|
|
216
|
-
)), {
|
|
217
|
-
contents: outagain,
|
|
218
|
-
loader: "jsx"
|
|
219
|
-
};
|
|
220
|
-
}
|
|
221
|
-
);
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
]
|
|
225
|
-
}).then(async () => {
|
|
226
|
-
const bundled = await (0, import_promises.readFile)(options.outfile, "utf-8"), outCode = `
|
|
227
|
-
const run = () => {
|
|
228
|
-
${(0, import_utils.mustReplace)(bundled, [
|
|
229
|
-
{
|
|
230
|
-
find: esbuildCommonJSFunction,
|
|
231
|
-
replace: `
|
|
232
|
-
// replaced commonjs function to allow importing internals
|
|
233
|
-
var __commonJS = function __commonJS(cb, mod) {
|
|
234
|
-
var path = __getOwnPropNames(cb)[0];
|
|
235
|
-
var modulePath = path.replace(/.*node_modules\\//, '').replace('.js', '');
|
|
236
|
-
|
|
237
|
-
var __require = function __require() {
|
|
238
|
-
if (mod) return mod;
|
|
239
|
-
|
|
240
|
-
var cachedMod = globalThis["__cachedModules"][modulePath];
|
|
241
|
-
if (cachedMod) return cachedMod;
|
|
242
|
-
|
|
243
|
-
var moduleFn = cb[path];
|
|
244
|
-
mod = {
|
|
245
|
-
exports: {}
|
|
246
|
-
};
|
|
247
|
-
moduleFn(mod.exports, mod);
|
|
248
|
-
mod = mod.exports;
|
|
249
|
-
// this is one of our patches basically allowing importing the inner contents:
|
|
250
|
-
globalThis["__cachedModules"][modulePath] = mod;
|
|
251
|
-
return mod;
|
|
252
|
-
};
|
|
253
|
-
|
|
254
|
-
// this is another patch basically allowing importing the inner contents:
|
|
255
|
-
if (globalThis['__RN_INTERNAL_MODULE_REQUIRES_MAP__']) {
|
|
256
|
-
globalThis['__RN_INTERNAL_MODULE_REQUIRES_MAP__'][modulePath] = __require;
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
return __require;
|
|
260
|
-
};
|
|
261
|
-
`
|
|
262
|
-
},
|
|
263
|
-
{
|
|
264
|
-
find: /module\.exports = require_(react_native|index)\(\);/,
|
|
265
|
-
replace: [
|
|
266
|
-
"const rn = require_$1();",
|
|
267
|
-
"rn.AssetRegistry = require_registry();",
|
|
268
|
-
"require_ReactNative();",
|
|
269
|
-
// 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.
|
|
270
|
-
"if (typeof require_InitializeCore === 'function') { require_InitializeCore(); }",
|
|
271
|
-
// 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.
|
|
272
|
-
"return rn;"
|
|
273
|
-
].join(`
|
|
274
|
-
`)
|
|
275
|
-
},
|
|
276
|
-
// improve error logs a lot including stack of original error
|
|
277
|
-
{
|
|
278
|
-
find: 'originalMessage = e.message || "";',
|
|
279
|
-
replace: 'originalMessage = "" + (e.stack || "");'
|
|
280
|
-
}
|
|
281
|
-
])}
|
|
282
|
-
}
|
|
283
|
-
const RN = run()
|
|
284
|
-
|
|
285
|
-
export const REACT_NATIVE_ESM_MANUAL_EXPORTS_START = 'REACT_NATIVE_ESM_MANUAL_EXPORTS_START';
|
|
286
|
-
${RNExportNames.map((n) => `export const ${n} = RN.${n}`).join(`
|
|
287
|
-
`)}
|
|
288
|
-
export const REACT_NATIVE_ESM_MANUAL_EXPORTS_END = 'REACT_NATIVE_ESM_MANUAL_EXPORTS_END';
|
|
289
|
-
`;
|
|
290
|
-
await import_fs_extra.default.writeFile(options.outfile, outCode);
|
|
291
|
-
});
|
|
292
|
-
}
|
|
293
|
-
const esbuildCommonJSFunction = `var __commonJS = (cb, mod) => function __require() {
|
|
294
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
295
|
-
};`, RNExportNames = [
|
|
296
|
-
"registerCallableModule",
|
|
297
|
-
"AccessibilityInfo",
|
|
298
|
-
"ActivityIndicator",
|
|
299
|
-
"Button",
|
|
300
|
-
"DrawerLayoutAndroid",
|
|
301
|
-
"FlatList",
|
|
302
|
-
"Image",
|
|
303
|
-
"ImageBackground",
|
|
304
|
-
"InputAccessoryView",
|
|
305
|
-
"KeyboardAvoidingView",
|
|
306
|
-
"Modal",
|
|
307
|
-
"Pressable",
|
|
308
|
-
"RefreshControl",
|
|
309
|
-
"SafeAreaView",
|
|
310
|
-
"ScrollView",
|
|
311
|
-
"SectionList",
|
|
312
|
-
"StatusBar",
|
|
313
|
-
"Switch",
|
|
314
|
-
"Text",
|
|
315
|
-
"TextInput",
|
|
316
|
-
"Touchable",
|
|
317
|
-
"TouchableHighlight",
|
|
318
|
-
"TouchableNativeFeedback",
|
|
319
|
-
"TouchableOpacity",
|
|
320
|
-
"TouchableWithoutFeedback",
|
|
321
|
-
"View",
|
|
322
|
-
"VirtualizedList",
|
|
323
|
-
"VirtualizedSectionList",
|
|
324
|
-
"ActionSheetIOS",
|
|
325
|
-
"Alert",
|
|
326
|
-
"Animated",
|
|
327
|
-
"Appearance",
|
|
328
|
-
"AppRegistry",
|
|
329
|
-
"AppState",
|
|
330
|
-
"BackHandler",
|
|
331
|
-
"DeviceInfo",
|
|
332
|
-
"DevSettings",
|
|
333
|
-
"Dimensions",
|
|
334
|
-
"Easing",
|
|
335
|
-
"findNodeHandle",
|
|
336
|
-
"I18nManager",
|
|
337
|
-
"InteractionManager",
|
|
338
|
-
"Keyboard",
|
|
339
|
-
"LayoutAnimation",
|
|
340
|
-
"Linking",
|
|
341
|
-
"LogBox",
|
|
342
|
-
"NativeDialogManagerAndroid",
|
|
343
|
-
"NativeEventEmitter",
|
|
344
|
-
"Networking",
|
|
345
|
-
"PanResponder",
|
|
346
|
-
"PermissionsAndroid",
|
|
347
|
-
"PixelRatio",
|
|
348
|
-
"Settings",
|
|
349
|
-
"Share",
|
|
350
|
-
"StyleSheet",
|
|
351
|
-
"Systrace",
|
|
352
|
-
"ToastAndroid",
|
|
353
|
-
"TurboModuleRegistry",
|
|
354
|
-
"UIManager",
|
|
355
|
-
"unstable_batchedUpdates",
|
|
356
|
-
"useAnimatedValue",
|
|
357
|
-
"useColorScheme",
|
|
358
|
-
"useWindowDimensions",
|
|
359
|
-
"UTFSequence",
|
|
360
|
-
"Vibration",
|
|
361
|
-
"DeviceEventEmitter",
|
|
362
|
-
"DynamicColorIOS",
|
|
363
|
-
"NativeAppEventEmitter",
|
|
364
|
-
"NativeModules",
|
|
365
|
-
"Platform",
|
|
366
|
-
"PlatformColor",
|
|
367
|
-
"processColor",
|
|
368
|
-
"requireNativeComponent",
|
|
369
|
-
"RootTagContext",
|
|
370
|
-
"AssetRegistry"
|
|
371
|
-
// Normally not exported by React Native, but with a hack we make @react-native/assets-registry/registry available here.
|
|
372
|
-
], RExports = [
|
|
373
|
-
"Children",
|
|
374
|
-
"Component",
|
|
375
|
-
"Fragment",
|
|
376
|
-
"Profiler",
|
|
377
|
-
"PureComponent",
|
|
378
|
-
"StrictMode",
|
|
379
|
-
"Suspense",
|
|
380
|
-
"__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",
|
|
381
|
-
// For React 18
|
|
382
|
-
"__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE",
|
|
383
|
-
// For React 19
|
|
384
|
-
"cloneElement",
|
|
385
|
-
"createContext",
|
|
386
|
-
"createElement",
|
|
387
|
-
"createFactory",
|
|
388
|
-
"createRef",
|
|
389
|
-
"forwardRef",
|
|
390
|
-
"isValidElement",
|
|
391
|
-
"lazy",
|
|
392
|
-
"memo",
|
|
393
|
-
"startTransition",
|
|
394
|
-
"unstable_act",
|
|
395
|
-
"useCallback",
|
|
396
|
-
"useContext",
|
|
397
|
-
"useDebugValue",
|
|
398
|
-
"useDeferredValue",
|
|
399
|
-
"useEffect",
|
|
400
|
-
"useId",
|
|
401
|
-
"useImperativeHandle",
|
|
402
|
-
"useInsertionEffect",
|
|
403
|
-
"useLayoutEffect",
|
|
404
|
-
"useMemo",
|
|
405
|
-
"useReducer",
|
|
406
|
-
"useRef",
|
|
407
|
-
"useState",
|
|
408
|
-
"useSyncExternalStore",
|
|
409
|
-
"useTransition",
|
|
410
|
-
"version",
|
|
411
|
-
// Added in React 19
|
|
412
|
-
"act",
|
|
413
|
-
"cache",
|
|
414
|
-
"unstable_useCacheRefresh",
|
|
415
|
-
"use",
|
|
416
|
-
"useActionState",
|
|
417
|
-
"useOptimistic"
|
|
418
|
-
];
|
|
419
|
-
//# sourceMappingURL=index.js.map
|
package/dist/cjs/index.js.map
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
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A;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA;AAAA,EACA;AAAA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA;AAAA,EAEA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;",
|
|
5
|
-
"names": ["FSExtra", "build"]
|
|
6
|
-
}
|
package/dist/cjs/index.test.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __copyProps = (to, from, except, desc) => {
|
|
7
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
8
|
-
for (let key of __getOwnPropNames(from))
|
|
9
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
-
return to;
|
|
11
|
-
};
|
|
12
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
13
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
14
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
15
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
16
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
17
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
|
|
18
|
-
mod
|
|
19
|
-
));
|
|
20
|
-
var import_vitest = require("vitest"), import_index = require("./index");
|
|
21
|
-
(0, import_vitest.describe)("RExports", () => {
|
|
22
|
-
(0, import_vitest.it)("should contain all keys that the `react` package exports", async () => {
|
|
23
|
-
const React = (await import("react")).default;
|
|
24
|
-
for (const key in React)
|
|
25
|
-
(0, import_vitest.expect)(import_index.RExports).toContain(key);
|
|
26
|
-
});
|
|
27
|
-
});
|
|
28
|
-
//# sourceMappingURL=index.test.js.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/index.test.ts"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;AAAA,oBAAqC,mBAErC,eAAyB;AAAA,IAEzB,wBAAS,YAAY,MAAM;AACzB,wBAAG,4DAA4D,YAAY;AACzE,UAAM,SAAS,MAAM,OAAO,OAAO,GAAG;AAEtC,eAAW,OAAO;AAChB,gCAAO,qBAAQ,EAAE,UAAU,GAAG;AAAA,EAElC,CAAC;AACH,CAAC;",
|
|
5
|
-
"names": []
|
|
6
|
-
}
|
package/dist/esm/index.test.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { describe, expect, it } from "vitest";
|
|
2
|
-
import { RExports } from "./index";
|
|
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
|
-
//# sourceMappingURL=index.test.js.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/index.test.ts"],
|
|
4
|
-
"mappings": "AAAA,SAAS,UAAU,QAAQ,UAAU;AAErC,SAAS,gBAAgB;AAEzB,SAAS,YAAY,MAAM;AACzB,KAAG,4DAA4D,YAAY;AACzE,UAAM,SAAS,MAAM,OAAO,OAAO,GAAG;AAEtC,eAAW,OAAO;AAChB,aAAO,QAAQ,EAAE,UAAU,GAAG;AAAA,EAElC,CAAC;AACH,CAAC;",
|
|
5
|
-
"names": []
|
|
6
|
-
}
|