@vxrn/react-native-prebuilt 1.14.4 → 1.14.5
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/cjs/index.cjs +135 -122
- package/dist/cjs/index.native.js +160 -150
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/cjs/index.test.cjs +14 -10
- package/dist/cjs/index.test.native.js +14 -10
- package/dist/cjs/index.test.native.js.map +1 -1
- package/dist/esm/index.js +104 -93
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/index.mjs +104 -93
- package/dist/esm/index.mjs.map +1 -1
- package/dist/esm/index.native.js +130 -122
- package/dist/esm/index.native.js.map +1 -1
- package/dist/esm/index.test.mjs +3 -1
- package/dist/esm/index.test.mjs.map +1 -1
- package/dist/esm/index.test.native.js +3 -1
- package/dist/esm/index.test.native.js.map +1 -1
- package/package.json +5 -5
package/dist/cjs/index.native.js
CHANGED
|
@@ -4,33 +4,35 @@ var __create = Object.create;
|
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
5
5
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
6
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
-
var __getProtoOf = Object.getPrototypeOf
|
|
8
|
-
|
|
7
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
9
|
var __export = (target, all) => {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
10
|
+
for (var name in all) __defProp(target, name, {
|
|
11
|
+
get: all[name],
|
|
12
|
+
enumerable: true
|
|
13
|
+
});
|
|
14
|
+
};
|
|
15
|
+
var __copyProps = (to, from, except, desc) => {
|
|
16
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
17
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
17
18
|
get: () => from[key],
|
|
18
19
|
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
19
20
|
});
|
|
20
|
-
|
|
21
|
-
|
|
21
|
+
}
|
|
22
|
+
return to;
|
|
23
|
+
};
|
|
22
24
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
25
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
26
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
27
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
28
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
29
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
30
|
+
value: mod,
|
|
31
|
+
enumerable: true
|
|
32
|
+
}) : target, mod));
|
|
33
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
34
|
+
value: true
|
|
35
|
+
}), mod);
|
|
34
36
|
var index_exports = {};
|
|
35
37
|
__export(index_exports, {
|
|
36
38
|
RExports: () => RExports,
|
|
@@ -40,112 +42,113 @@ __export(index_exports, {
|
|
|
40
42
|
buildReactNative: () => buildReactNative
|
|
41
43
|
});
|
|
42
44
|
module.exports = __toCommonJS(index_exports);
|
|
43
|
-
var import_utils = require("@vxrn/utils")
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
45
|
+
var import_utils = require("@vxrn/utils");
|
|
46
|
+
var import_vite_flow = require("@vxrn/vite-flow");
|
|
47
|
+
var import_esbuild = require("esbuild");
|
|
48
|
+
var import_fs_extra = __toESM(require("fs-extra"), 1);
|
|
49
|
+
var import_promises = require("fs/promises");
|
|
50
|
+
var import_module = require("module");
|
|
49
51
|
const import_meta = {};
|
|
50
|
-
var requireResolve = "url" in import_meta ? (0, import_module.createRequire)(import_meta.url).resolve : require.resolve
|
|
51
|
-
|
|
52
|
+
var requireResolve = "url" in import_meta ? (0, import_module.createRequire)(import_meta.url).resolve : require.resolve;
|
|
53
|
+
var external = ["react", "react/jsx-runtime", "react/jsx-dev-runtime"];
|
|
52
54
|
async function buildReactJSX() {
|
|
53
|
-
var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}
|
|
54
|
-
|
|
55
|
-
|
|
55
|
+
var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
56
|
+
var _options_define;
|
|
57
|
+
var isProd = ((_options_define = options.define) === null || _options_define === void 0 ? void 0 : _options_define["__DEV__"]) === "false";
|
|
56
58
|
return (0, import_esbuild.build)({
|
|
57
|
-
bundle:
|
|
59
|
+
bundle: true,
|
|
58
60
|
entryPoints: [requireResolve("react/jsx-dev-runtime")],
|
|
59
61
|
format: "cjs",
|
|
60
62
|
target: "node16",
|
|
61
63
|
jsx: "transform",
|
|
62
64
|
jsxFactory: "react",
|
|
63
|
-
allowOverwrite:
|
|
65
|
+
allowOverwrite: true,
|
|
64
66
|
platform: "node",
|
|
65
67
|
define: {
|
|
66
68
|
__DEV__: "true",
|
|
67
|
-
"process.env.NODE_ENV":
|
|
69
|
+
"process.env.NODE_ENV": `"development"`
|
|
68
70
|
},
|
|
69
71
|
external,
|
|
70
72
|
logLevel: "warning",
|
|
71
73
|
...options
|
|
72
74
|
}).then(async function () {
|
|
73
|
-
var bundled = await (0, import_promises.readFile)(options.outfile, "utf-8")
|
|
74
|
-
|
|
75
|
+
var bundled = await (0, import_promises.readFile)(options.outfile, "utf-8");
|
|
76
|
+
var outCode = `
|
|
75
77
|
const run = () => {
|
|
76
78
|
${(0, import_utils.mustReplace)(bundled, [...(isProd ? [{
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
79
|
+
// react 18 and 19 (18 has _min)
|
|
80
|
+
find: /module\.exports = require_react_jsx_runtime_production([a-z_]*)\(\);/,
|
|
81
|
+
replace: `return require_react_jsx_runtime_production$1();`
|
|
82
|
+
}] : [{
|
|
83
|
+
find: `module.exports = require_react_jsx_dev_runtime_development();`,
|
|
84
|
+
replace: `return require_react_jsx_dev_runtime_development();`
|
|
85
|
+
}]), {
|
|
86
|
+
find: `process.env.VXRN_REACT_19`,
|
|
87
|
+
replace: "false",
|
|
88
|
+
optional: true
|
|
89
|
+
}, {
|
|
90
|
+
find: `Object.assign(exports, eval("require('@vxrn/vendor/react-jsx-19')"));`,
|
|
91
|
+
optional: true,
|
|
92
|
+
replace: ``
|
|
93
|
+
}])}
|
|
92
94
|
}
|
|
93
95
|
const __mod__ = run()
|
|
94
96
|
${["jsx", "jsxs", "jsxDEV", "Fragment"].map(function (n) {
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
97
|
+
return `export const ${n} = __mod__.${n} || __mod__.jsx || ${function () {
|
|
98
|
+
if (n === "jsxs") {
|
|
99
|
+
return "function (type, props, key) { return __mod__.jsxDEV(type, props, key, true) }";
|
|
100
|
+
}
|
|
101
|
+
return "__mod__.jsxDEV";
|
|
102
|
+
}()}`;
|
|
103
|
+
}).join("\n")}
|
|
100
104
|
`;
|
|
101
105
|
await import_fs_extra.default.writeFile(options.outfile, outCode);
|
|
102
106
|
});
|
|
103
107
|
}
|
|
104
108
|
async function buildReact() {
|
|
105
|
-
var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}
|
|
106
|
-
|
|
107
|
-
|
|
109
|
+
var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
110
|
+
var _options_define;
|
|
111
|
+
var isProd = ((_options_define = options.define) === null || _options_define === void 0 ? void 0 : _options_define["__DEV__"]) === "false";
|
|
108
112
|
return (0, import_esbuild.build)({
|
|
109
|
-
bundle:
|
|
113
|
+
bundle: true,
|
|
110
114
|
entryPoints: [requireResolve("react")],
|
|
111
115
|
format: "cjs",
|
|
112
116
|
target: "node16",
|
|
113
117
|
jsx: "transform",
|
|
114
118
|
jsxFactory: "react",
|
|
115
|
-
allowOverwrite:
|
|
119
|
+
allowOverwrite: true,
|
|
116
120
|
platform: "node",
|
|
117
121
|
define: {
|
|
118
122
|
__DEV__: "true",
|
|
119
|
-
"process.env.NODE_ENV":
|
|
123
|
+
"process.env.NODE_ENV": `"development"`
|
|
120
124
|
},
|
|
121
125
|
logLevel: "warning",
|
|
122
126
|
external,
|
|
123
127
|
...options
|
|
124
128
|
}).then(async function () {
|
|
125
|
-
var bundled = await (0, import_promises.readFile)(options.outfile, "utf-8")
|
|
126
|
-
|
|
129
|
+
var bundled = await (0, import_promises.readFile)(options.outfile, "utf-8");
|
|
130
|
+
var outCode = `
|
|
127
131
|
const run = () => {
|
|
128
132
|
${(0, import_utils.mustReplace)(bundled, [isProd ? {
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
133
|
+
find: /module\.exports = require_react_production([a-z_]*)\(\);/,
|
|
134
|
+
replace: "return require_react_production$1();"
|
|
135
|
+
} : {
|
|
136
|
+
find: /module\.exports = require_react_development([a-z_]*)\(\);/,
|
|
137
|
+
replace: "return require_react_development$1();"
|
|
138
|
+
}, {
|
|
139
|
+
find: `process.env.VXRN_REACT_19`,
|
|
140
|
+
optional: true,
|
|
141
|
+
replace: "false"
|
|
142
|
+
}, {
|
|
143
|
+
find: `Object.assign(exports, eval("require('@vxrn/vendor/react-19')"));`,
|
|
144
|
+
optional: true,
|
|
145
|
+
replace: ``
|
|
146
|
+
}])}
|
|
143
147
|
}
|
|
144
148
|
const __mod__ = run()
|
|
145
149
|
${RExports.map(function (n) {
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
`)}
|
|
150
|
+
return `export const ${n} = __mod__.${n}`;
|
|
151
|
+
}).join("\n")}
|
|
149
152
|
export default __mod__
|
|
150
153
|
`;
|
|
151
154
|
await import_fs_extra.default.writeFile(options.outfile, outCode);
|
|
@@ -155,14 +158,14 @@ async function buildReactNative() {
|
|
|
155
158
|
var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {},
|
|
156
159
|
{
|
|
157
160
|
platform,
|
|
158
|
-
enableExperimentalReactNativeWithReact19Support =
|
|
161
|
+
enableExperimentalReactNativeWithReact19Support = false
|
|
159
162
|
} = arguments.length > 1 ? arguments[1] : void 0;
|
|
160
163
|
return (0, import_esbuild.build)({
|
|
161
|
-
bundle:
|
|
164
|
+
bundle: true,
|
|
162
165
|
entryPoints: [requireResolve("react-native")],
|
|
163
166
|
format: "cjs",
|
|
164
167
|
target: "node20",
|
|
165
|
-
allowOverwrite:
|
|
168
|
+
allowOverwrite: true,
|
|
166
169
|
platform: "node",
|
|
167
170
|
external,
|
|
168
171
|
loader: {
|
|
@@ -173,7 +176,7 @@ async function buildReactNative() {
|
|
|
173
176
|
},
|
|
174
177
|
define: {
|
|
175
178
|
__DEV__: "true",
|
|
176
|
-
"process.env.NODE_ENV":
|
|
179
|
+
"process.env.NODE_ENV": `"development"`
|
|
177
180
|
},
|
|
178
181
|
logLevel: "warning",
|
|
179
182
|
resolveExtensions: [`.${platform}.js`, ".native.js", ".js", ".jsx", ".json", ".mjs"],
|
|
@@ -184,58 +187,66 @@ async function buildReactNative() {
|
|
|
184
187
|
build2.onResolve({
|
|
185
188
|
filter: /HMRClient/
|
|
186
189
|
}, async function (input) {
|
|
187
|
-
var path = requireResolve("@vxrn/vite-native-hmr")
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
190
|
+
var path = requireResolve("@vxrn/vite-native-hmr");
|
|
191
|
+
var possibleEsmPath = path.replace("/cjs/index.cjs", "/esm/index.native.js");
|
|
192
|
+
if (import_fs_extra.default.pathExistsSync(possibleEsmPath)) {
|
|
193
|
+
return {
|
|
194
|
+
path: possibleEsmPath
|
|
195
|
+
};
|
|
196
|
+
}
|
|
197
|
+
return {
|
|
192
198
|
path
|
|
193
199
|
};
|
|
194
|
-
})
|
|
200
|
+
});
|
|
201
|
+
build2.onLoad({
|
|
195
202
|
filter: /.*\.js$/
|
|
196
203
|
}, async function (input) {
|
|
197
|
-
if (!
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
var reactNativeRendererPath = requireResolve(`@vxrn/react-native-prebuilt/vendor/rn-react-19-support/ReactNativeRenderer-${input.path.endsWith("-dev.js") ? "dev" : "prod"}.js`);
|
|
208
|
-
return {
|
|
209
|
-
contents: await (0, import_promises.readFile)(reactNativeRendererPath, "utf-8"),
|
|
210
|
-
loader: "js"
|
|
211
|
-
};
|
|
212
|
-
}
|
|
204
|
+
if (!input.path.includes("react-native") && !input.path.includes(`vite-native-hmr`)) {
|
|
205
|
+
return;
|
|
206
|
+
}
|
|
207
|
+
if (enableExperimentalReactNativeWithReact19Support) {
|
|
208
|
+
if (input.path.includes("Libraries/Renderer/implementations/ReactFabric")) {
|
|
209
|
+
var reactFabricRendererPath = requireResolve(`@vxrn/react-native-prebuilt/vendor/rn-react-19-support/ReactFabric-${input.path.endsWith("-dev.js") ? "dev" : "prod"}.js`);
|
|
210
|
+
return {
|
|
211
|
+
contents: await (0, import_promises.readFile)(reactFabricRendererPath, "utf-8"),
|
|
212
|
+
loader: "js"
|
|
213
|
+
};
|
|
213
214
|
}
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
215
|
+
if (input.path.includes("Libraries/Renderer/implementations/ReactNativeRenderer")) {
|
|
216
|
+
var reactNativeRendererPath = requireResolve(`@vxrn/react-native-prebuilt/vendor/rn-react-19-support/ReactNativeRenderer-${input.path.endsWith("-dev.js") ? "dev" : "prod"}.js`);
|
|
217
|
+
return {
|
|
218
|
+
contents: await (0, import_promises.readFile)(reactNativeRendererPath, "utf-8"),
|
|
219
|
+
loader: "js"
|
|
220
|
+
};
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
var code = await (0, import_promises.readFile)(input.path, "utf-8");
|
|
224
|
+
var outagain = await (0, import_vite_flow.transformFlowBabel)(code, {
|
|
225
|
+
development: true,
|
|
226
|
+
path: input.path
|
|
227
|
+
});
|
|
228
|
+
if (input.path.endsWith("react-native/index.js")) {
|
|
229
|
+
outagain = outagain.replace(/module\.exports *= *{/, `
|
|
220
230
|
module.exports = {
|
|
221
231
|
get _vxrnInternalReactNativeVersionDoNotUse() {
|
|
222
232
|
return require("./Libraries/Core/ReactNativeVersion").default;
|
|
223
233
|
},
|
|
224
|
-
`.trim())
|
|
225
|
-
contents: outagain,
|
|
226
|
-
loader: "jsx"
|
|
227
|
-
};
|
|
234
|
+
`.trim());
|
|
228
235
|
}
|
|
236
|
+
return {
|
|
237
|
+
contents: outagain,
|
|
238
|
+
loader: "jsx"
|
|
239
|
+
};
|
|
229
240
|
});
|
|
230
241
|
}
|
|
231
242
|
}]
|
|
232
243
|
}).then(async function () {
|
|
233
|
-
var bundled = await (0, import_promises.readFile)(options.outfile, "utf-8")
|
|
234
|
-
|
|
244
|
+
var bundled = await (0, import_promises.readFile)(options.outfile, "utf-8");
|
|
245
|
+
var outCode = `
|
|
235
246
|
const run = () => {
|
|
236
247
|
${(0, import_utils.mustReplace)(bundled, [{
|
|
237
|
-
|
|
238
|
-
|
|
248
|
+
find: esbuildCommonJSFunction,
|
|
249
|
+
replace: `
|
|
239
250
|
// replaced commonjs function to allow importing internals
|
|
240
251
|
var __commonJS = function __commonJS(cb, mod) {
|
|
241
252
|
var path = __getOwnPropNames(cb)[0];
|
|
@@ -266,28 +277,27 @@ var __commonJS = function __commonJS(cb, mod) {
|
|
|
266
277
|
return __require;
|
|
267
278
|
};
|
|
268
279
|
`
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
}])}
|
|
280
|
+
}, {
|
|
281
|
+
find: /module\.exports = require_(react_native|index)\(\);/,
|
|
282
|
+
replace: [`const rn = require_$1();`, `rn.AssetRegistry = require_registry();`, `require_ReactNative();`,
|
|
283
|
+
// 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.
|
|
284
|
+
`if (typeof require_InitializeCore === 'function') { require_InitializeCore(); }`,
|
|
285
|
+
// 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.
|
|
286
|
+
`return rn;`].join("\n")
|
|
287
|
+
},
|
|
288
|
+
// improve error logs a lot including stack of original error
|
|
289
|
+
{
|
|
290
|
+
find: `originalMessage = e.message || "";`,
|
|
291
|
+
replace: `originalMessage = "" + (e.stack || "");`
|
|
292
|
+
}])}
|
|
283
293
|
}
|
|
284
294
|
const RN = run()
|
|
285
295
|
|
|
286
|
-
export const REACT_NATIVE_ESM_MANUAL_EXPORTS_START = 'REACT_NATIVE_ESM_MANUAL_EXPORTS_START'
|
|
296
|
+
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. */
|
|
297
|
+
""}
|
|
287
298
|
${RNExportNames.map(function (n) {
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
`)}
|
|
299
|
+
return `export const ${n} = RN.${n}`;
|
|
300
|
+
}).join("\n")}
|
|
291
301
|
export const REACT_NATIVE_ESM_MANUAL_EXPORTS_END = 'REACT_NATIVE_ESM_MANUAL_EXPORTS_END';
|
|
292
302
|
`;
|
|
293
303
|
await import_fs_extra.default.writeFile(options.outfile, outCode);
|
|
@@ -295,13 +305,13 @@ var __commonJS = function __commonJS(cb, mod) {
|
|
|
295
305
|
}
|
|
296
306
|
var esbuildCommonJSFunction = `var __commonJS = (cb, mod) => function __require() {
|
|
297
307
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
308
|
+
};`;
|
|
309
|
+
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", "useColorScheme", "useWindowDimensions", "UTFSequence", "Vibration", "DeviceEventEmitter", "DynamicColorIOS", "NativeAppEventEmitter", "NativeModules", "Platform", "PlatformColor", "processColor", "requireNativeComponent", "RootTagContext", "AssetRegistry"];
|
|
310
|
+
var RExports = ["Children", "Component", "Fragment", "Profiler", "PureComponent", "StrictMode", "Suspense", "__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",
|
|
311
|
+
// For React 18
|
|
312
|
+
"__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE",
|
|
313
|
+
// For React 19
|
|
314
|
+
"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",
|
|
315
|
+
// Added in React 19
|
|
316
|
+
"act", "cache", "unstable_useCacheRefresh", "use", "useActionState", "useOptimistic"];
|
|
307
317
|
//# sourceMappingURL=index.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["__create","Object","create","__defProp","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor","__getOwnPropNames","getOwnPropertyNames","__getProtoOf","getPrototypeOf","__hasOwnProp","prototype","hasOwnProperty","__export","target","all","name","get","enumerable","__copyProps","to","from","except","desc","key","call","__toESM","mod","isNodeMode","__esModule","value","__toCommonJS","index_exports","RExports","RNExportNames","buildReact","buildReactJSX","buildReactNative","module","exports","import_utils","require","import_vite_flow","import_esbuild","import_fs_extra","import_promises","import_module","import_meta","requireResolve","createRequire","url","resolve","external","options","arguments","length","_options_define","isProd","define","__DEV__","build","bundle","entryPoints","format","jsx","jsxFactory","allowOverwrite","platform","logLevel","then","bundled","readFile","outfile","outCode","mustReplace","find","replace","optional","map","n","join","default","writeFile","enableExperimentalReactNativeWithReact19Support","loader","resolveExtensions","plugins","setup","build2","onResolve","filter","input","path","possibleEsmPath","pathExistsSync","onLoad","includes","reactFabricRendererPath","endsWith","contents","reactNativeRendererPath","code","outagain","transformFlowBabel","development","trim","esbuildCommonJSFunction"],"sources":["index.native.js"],"sourcesContent":["\"use strict\";\nvar __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: !0 });\n}, __copyProps = (to, from, except, desc) => {\n if (from && typeof from == \"object\" || typeof from == \"function\")\n for (let key of __getOwnPropNames(from))\n !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n return to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: !0 }) : target,\n mod\n)), __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: !0 }), mod);\nvar index_exports = {};\n__export(index_exports, {\n RExports: () => RExports,\n RNExportNames: () => RNExportNames,\n buildReact: () => buildReact,\n buildReactJSX: () => buildReactJSX,\n buildReactNative: () => buildReactNative\n});\nmodule.exports = __toCommonJS(index_exports);\nvar 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(\"fs/promises\"), import_module = require(\"module\");\nconst import_meta = {};\nvar requireResolve = \"url\" in import_meta ? (0, import_module.createRequire)(import_meta.url).resolve : require.resolve, external = [\n \"react\",\n \"react/jsx-runtime\",\n \"react/jsx-dev-runtime\"\n];\nasync function buildReactJSX() {\n 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\";\n return (0, import_esbuild.build)({\n bundle: !0,\n entryPoints: [\n requireResolve(\"react/jsx-dev-runtime\")\n ],\n format: \"cjs\",\n target: \"node16\",\n jsx: \"transform\",\n jsxFactory: \"react\",\n allowOverwrite: !0,\n platform: \"node\",\n define: {\n __DEV__: \"true\",\n \"process.env.NODE_ENV\": '\"development\"'\n },\n external,\n logLevel: \"warning\",\n ...options\n }).then(async function() {\n var bundled = await (0, import_promises.readFile)(options.outfile, \"utf-8\"), outCode = `\n const run = () => {\n ${(0, import_utils.mustReplace)(bundled, [\n ...isProd ? [\n {\n // react 18 and 19 (18 has _min)\n find: /module\\.exports = require_react_jsx_runtime_production([a-z_]*)\\(\\);/,\n replace: \"return require_react_jsx_runtime_production$1();\"\n }\n ] : [\n {\n find: \"module.exports = require_react_jsx_dev_runtime_development();\",\n replace: \"return require_react_jsx_dev_runtime_development();\"\n }\n ],\n {\n find: \"process.env.VXRN_REACT_19\",\n replace: \"false\",\n optional: !0\n },\n {\n find: `Object.assign(exports, eval(\"require('@vxrn/vendor/react-jsx-19')\"));`,\n optional: !0,\n replace: \"\"\n }\n ])}\n }\n const __mod__ = run()\n ${[\n \"jsx\",\n \"jsxs\",\n \"jsxDEV\",\n \"Fragment\"\n ].map(function(n) {\n return `export const ${n} = __mod__.${n} || __mod__.jsx || ${/* @__PURE__ */ (function() {\n return n === \"jsxs\" ? \"function (type, props, key) { return __mod__.jsxDEV(type, props, key, true) }\" : \"__mod__.jsxDEV\";\n })()}`;\n }).join(`\n`)}\n `;\n await import_fs_extra.default.writeFile(options.outfile, outCode);\n });\n}\nasync function buildReact() {\n 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\";\n return (0, import_esbuild.build)({\n bundle: !0,\n entryPoints: [\n requireResolve(\"react\")\n ],\n format: \"cjs\",\n target: \"node16\",\n jsx: \"transform\",\n jsxFactory: \"react\",\n allowOverwrite: !0,\n platform: \"node\",\n define: {\n __DEV__: \"true\",\n \"process.env.NODE_ENV\": '\"development\"'\n },\n logLevel: \"warning\",\n external,\n ...options\n }).then(async function() {\n var bundled = await (0, import_promises.readFile)(options.outfile, \"utf-8\"), outCode = `\n const run = () => {\n ${(0, import_utils.mustReplace)(bundled, [\n isProd ? {\n find: /module\\.exports = require_react_production([a-z_]*)\\(\\);/,\n replace: \"return require_react_production$1();\"\n } : {\n find: /module\\.exports = require_react_development([a-z_]*)\\(\\);/,\n replace: \"return require_react_development$1();\"\n },\n {\n find: \"process.env.VXRN_REACT_19\",\n optional: !0,\n replace: \"false\"\n },\n {\n find: `Object.assign(exports, eval(\"require('@vxrn/vendor/react-19')\"));`,\n optional: !0,\n replace: \"\"\n }\n ])}\n }\n const __mod__ = run()\n ${RExports.map(function(n) {\n return `export const ${n} = __mod__.${n}`;\n }).join(`\n`)}\n export default __mod__\n `;\n await import_fs_extra.default.writeFile(options.outfile, outCode);\n });\n}\nasync function buildReactNative() {\n var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, { platform, enableExperimentalReactNativeWithReact19Support = !1 } = arguments.length > 1 ? arguments[1] : void 0;\n return (0, import_esbuild.build)({\n bundle: !0,\n entryPoints: [\n requireResolve(\"react-native\")\n ],\n format: \"cjs\",\n target: \"node20\",\n allowOverwrite: !0,\n platform: \"node\",\n external,\n loader: {\n \".png\": \"dataurl\",\n \".jpg\": \"dataurl\",\n \".jpeg\": \"dataurl\",\n \".gif\": \"dataurl\"\n },\n define: {\n __DEV__: \"true\",\n \"process.env.NODE_ENV\": '\"development\"'\n },\n logLevel: \"warning\",\n resolveExtensions: [\n `.${platform}.js`,\n \".native.js\",\n \".js\",\n \".jsx\",\n \".json\",\n \".mjs\"\n ],\n ...options,\n plugins: [\n {\n name: \"remove-flow\",\n setup(build2) {\n build2.onResolve({\n filter: /HMRClient/\n }, async function(input) {\n var path = requireResolve(\"@vxrn/vite-native-hmr\"), possibleEsmPath = path.replace(\"/cjs/index.cjs\", \"/esm/index.native.js\");\n return import_fs_extra.default.pathExistsSync(possibleEsmPath) ? {\n path: possibleEsmPath\n } : {\n path\n };\n }), build2.onLoad({\n filter: /.*\\.js$/\n }, async function(input) {\n if (!(!input.path.includes(\"react-native\") && !input.path.includes(\"vite-native-hmr\"))) {\n if (enableExperimentalReactNativeWithReact19Support) {\n if (input.path.includes(\"Libraries/Renderer/implementations/ReactFabric\")) {\n var reactFabricRendererPath = requireResolve(`@vxrn/react-native-prebuilt/vendor/rn-react-19-support/ReactFabric-${input.path.endsWith(\"-dev.js\") ? \"dev\" : \"prod\"}.js`);\n return {\n contents: await (0, import_promises.readFile)(reactFabricRendererPath, \"utf-8\"),\n loader: \"js\"\n };\n }\n if (input.path.includes(\"Libraries/Renderer/implementations/ReactNativeRenderer\")) {\n var reactNativeRendererPath = requireResolve(`@vxrn/react-native-prebuilt/vendor/rn-react-19-support/ReactNativeRenderer-${input.path.endsWith(\"-dev.js\") ? \"dev\" : \"prod\"}.js`);\n return {\n contents: await (0, import_promises.readFile)(reactNativeRendererPath, \"utf-8\"),\n loader: \"js\"\n };\n }\n }\n var code = await (0, import_promises.readFile)(input.path, \"utf-8\"), outagain = await (0, import_vite_flow.transformFlowBabel)(code, {\n development: !0,\n path: input.path\n });\n return input.path.endsWith(\"react-native/index.js\") && (outagain = outagain.replace(/module\\.exports *= *{/, `\nmodule.exports = {\n get _vxrnInternalReactNativeVersionDoNotUse() {\n return require(\"./Libraries/Core/ReactNativeVersion\").default;\n },\n `.trim())), {\n contents: outagain,\n loader: \"jsx\"\n };\n }\n });\n }\n }\n ]\n }).then(async function() {\n var bundled = await (0, import_promises.readFile)(options.outfile, \"utf-8\"), outCode = `\n const run = () => {\n ${(0, import_utils.mustReplace)(bundled, [\n {\n find: esbuildCommonJSFunction,\n replace: `\n// replaced commonjs function to allow importing internals\nvar __commonJS = function __commonJS(cb, mod) {\n var path = __getOwnPropNames(cb)[0];\n var modulePath = path.replace(/.*node_modules\\\\//, '').replace('.js', '');\n\n var __require = function __require() {\n if (mod) return mod;\n\n var cachedMod = globalThis[\"__cachedModules\"][modulePath];\n if (cachedMod) return cachedMod;\n\n var moduleFn = cb[path];\n mod = {\n exports: {}\n };\n moduleFn(mod.exports, mod);\n mod = mod.exports;\n // this is one of our patches basically allowing importing the inner contents:\n globalThis[\"__cachedModules\"][modulePath] = mod;\n return mod;\n };\n\n // this is another patch basically allowing importing the inner contents:\n if (globalThis['__RN_INTERNAL_MODULE_REQUIRES_MAP__']) {\n globalThis['__RN_INTERNAL_MODULE_REQUIRES_MAP__'][modulePath] = __require;\n }\n\n return __require;\n};\n`\n },\n {\n find: /module\\.exports = require_(react_native|index)\\(\\);/,\n replace: [\n \"const rn = require_$1();\",\n \"rn.AssetRegistry = require_registry();\",\n \"require_ReactNative();\",\n // 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.\n \"if (typeof require_InitializeCore === 'function') { require_InitializeCore(); }\",\n // 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.\n \"return rn;\"\n ].join(`\n`)\n },\n // improve error logs a lot including stack of original error\n {\n find: 'originalMessage = e.message || \"\";',\n replace: 'originalMessage = \"\" + (e.stack || \"\");'\n }\n ])}\n }\n const RN = run()\n\n export const REACT_NATIVE_ESM_MANUAL_EXPORTS_START = 'REACT_NATIVE_ESM_MANUAL_EXPORTS_START';\n ${RNExportNames.map(function(n) {\n return `export const ${n} = RN.${n}`;\n }).join(`\n`)}\n export const REACT_NATIVE_ESM_MANUAL_EXPORTS_END = 'REACT_NATIVE_ESM_MANUAL_EXPORTS_END';\n `;\n await import_fs_extra.default.writeFile(options.outfile, outCode);\n });\n}\nvar esbuildCommonJSFunction = `var __commonJS = (cb, mod) => function __require() {\n return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;\n};`, RNExportNames = [\n \"registerCallableModule\",\n \"AccessibilityInfo\",\n \"ActivityIndicator\",\n \"Button\",\n \"DrawerLayoutAndroid\",\n \"FlatList\",\n \"Image\",\n \"ImageBackground\",\n \"InputAccessoryView\",\n \"KeyboardAvoidingView\",\n \"Modal\",\n \"Pressable\",\n \"RefreshControl\",\n \"SafeAreaView\",\n \"ScrollView\",\n \"SectionList\",\n \"StatusBar\",\n \"Switch\",\n \"Text\",\n \"TextInput\",\n \"Touchable\",\n \"TouchableHighlight\",\n \"TouchableNativeFeedback\",\n \"TouchableOpacity\",\n \"TouchableWithoutFeedback\",\n \"View\",\n \"VirtualizedList\",\n \"VirtualizedSectionList\",\n \"ActionSheetIOS\",\n \"Alert\",\n \"Animated\",\n \"Appearance\",\n \"AppRegistry\",\n \"AppState\",\n \"BackHandler\",\n \"DeviceInfo\",\n \"DevSettings\",\n \"Dimensions\",\n \"Easing\",\n \"findNodeHandle\",\n \"I18nManager\",\n \"InteractionManager\",\n \"Keyboard\",\n \"LayoutAnimation\",\n \"Linking\",\n \"LogBox\",\n \"NativeDialogManagerAndroid\",\n \"NativeEventEmitter\",\n \"Networking\",\n \"PanResponder\",\n \"PermissionsAndroid\",\n \"PixelRatio\",\n \"Settings\",\n \"Share\",\n \"StyleSheet\",\n \"Systrace\",\n \"ToastAndroid\",\n \"TurboModuleRegistry\",\n \"UIManager\",\n \"unstable_batchedUpdates\",\n \"useAnimatedValue\",\n \"useColorScheme\",\n \"useWindowDimensions\",\n \"UTFSequence\",\n \"Vibration\",\n \"DeviceEventEmitter\",\n \"DynamicColorIOS\",\n \"NativeAppEventEmitter\",\n \"NativeModules\",\n \"Platform\",\n \"PlatformColor\",\n \"processColor\",\n \"requireNativeComponent\",\n \"RootTagContext\",\n \"AssetRegistry\"\n], RExports = [\n \"Children\",\n \"Component\",\n \"Fragment\",\n \"Profiler\",\n \"PureComponent\",\n \"StrictMode\",\n \"Suspense\",\n \"__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED\",\n // For React 18\n \"__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE\",\n // For React 19\n \"cloneElement\",\n \"createContext\",\n \"createElement\",\n \"createFactory\",\n \"createRef\",\n \"forwardRef\",\n \"isValidElement\",\n \"lazy\",\n \"memo\",\n \"startTransition\",\n \"unstable_act\",\n \"useCallback\",\n \"useContext\",\n \"useDebugValue\",\n \"useDeferredValue\",\n \"useEffect\",\n \"useId\",\n \"useImperativeHandle\",\n \"useInsertionEffect\",\n \"useLayoutEffect\",\n \"useMemo\",\n \"useReducer\",\n \"useRef\",\n \"useState\",\n \"useSyncExternalStore\",\n \"useTransition\",\n \"version\",\n // Added in React 19\n \"act\",\n \"cache\",\n \"unstable_useCacheRefresh\",\n \"use\",\n \"useActionState\",\n \"useOptimistic\"\n];\n//# sourceMappingURL=index.js.map\n"],"mappings":"AAAA,YAAY;;AACZ,IAAIA,QAAQ,GAAGC,MAAM,CAACC,MAAM;AAC5B,IAAIC,SAAS,GAAGF,MAAM,CAACG,cAAc;AACrC,IAAIC,gBAAgB,GAAGJ,MAAM,CAACK,wBAAwB;AACtD,IAAIC,iBAAiB,GAAGN,MAAM,CAACO,mBAAmB;AAClD,IAAIC,YAAY,GAAGR,MAAM,CAACS,cAAc;EAAEC,YAAY,GAAGV,MAAM,CAACW,SAAS,CAACC,cAAc;AACxF,IAAIC,QAAQ,GA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,gBAAgB,EAChB,MAAM,EACN,MAAM,EACN,iBAAiB,EACjB,cAAc,EACd,aAAa,EACb,YAAY,EACZ,eAAe,EACf,kBAAkB,EAClB,WAAW,EACX,OAAO,EACP,qBAAqB,EACrB,oBAAoB,EACpB,iBAAiB,EACjB,SAAS,EACT,YAAY,EACZ,QAAQ,EACR,UAAU,EACV,sBAAsB,EACtB,eAAe,EACf,SAAS;EACT;EACA,KAAK,EACL,OAAO,EACP,0BAA0B,EAC1B,KAAK,EACL,gBAAgB,EAChB,eAAe,CAChB","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","index_exports","__export","RExports","RNExportNames","buildReact","buildReactJSX","buildReactNative","module","exports","import_utils","require","import_vite_flow","import_esbuild","import_fs_extra","__toESM","import_promises","import_module","import_meta","requireResolve","createRequire","url","resolve","external","options","arguments","length","_options_define","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","default","writeFile","enableExperimentalReactNativeWithReact19Support","loader","resolveExtensions","plugins","name","setup","build2","onResolve","filter","input","path","possibleEsmPath","pathExistsSync","onLoad","includes","reactFabricRendererPath","endsWith","contents","reactNativeRendererPath","code","outagain","transformFlowBabel","development","trim","esbuildCommonJSFunction"],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,aAAA;AAAAC,QAAA,CAAAD,aAAA;EAAAE,QAAA,EAAAA,CAAA,KAAAA,QAAA;EAAAC,aAAA,EAAAA,CAAA,KAAAA,aAAA;EAAAC,UAAA,EAAAA,CAAA,KAAAA,UAAA;EAAAC,aAAA,EAAAA,CAAA,KAAAA,aAAA;EAAAC,gBAAA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AJ,OAAA;MAAAK,IAAA,EAAAgC,uBAAA;MAAA/B,OAAA;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;AACS;AACb;AAAA;AAGA;AACQ;IAER,GACA;MAAAD,IAAA;MAAAC,OAAA,yEAIoV;MACtV;MAAkE;MAAA;MAG9D,aACP,CAAAI,IAAA;IACH;IAEM;IAA0B;MAAAL,IAAA;MAInBC,OAAA;IACX,EACA;AAAA;AACA;AACA;AACA,mGACA;IACA;AAAA,MACA5C,aAAA,CAAA8C,GAAA,WAAAC,CAAA;MACA,uBAAAA,CAAA,SAAAA,CAAA;IACA,GAAAC,IAAA;AAAA;AACA,KACA;IACA,MAAAtC,eAAA,CAAAuC,OAAA,CAAAC,SAAA,CAAA9B,OAAA,CAAAoB,OAAA,EAAAC,OAAA;EACA;AAAA;AACA,IACAkC,uBAAA;AAAA;AACA,GACA;AAAA,IACA3E,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,4BACF,uBAEO,WAAM,EACX,2BACA,oBACA,kBACA,uBACA,eACA,aACA,sBACA,4CACA,6BACA,iBACA,gBACA,0BACA,kBACA;AACA,IACAD,QAAA,IACA,YACA,aACA,YACA,YACA,iBACA,cACA,YACA;AACA;AACA;AACA;AACA,gBACA,iBACA,iBACA,iBACA,aACA,cACA,kBACA,QACA,2BAEA,gBACA,eACA,cACA,iBACA,oBACA,aACF,S","ignoreList":[]}
|
package/dist/cjs/index.test.cjs
CHANGED
|
@@ -2,13 +2,15 @@ var __create = Object.create;
|
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf
|
|
6
|
-
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
7
|
var __copyProps = (to, from, except, desc) => {
|
|
8
|
-
if (from && typeof from
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
9
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
10
|
+
get: () => from[key],
|
|
11
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
12
|
+
});
|
|
13
|
+
}
|
|
12
14
|
return to;
|
|
13
15
|
};
|
|
14
16
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
@@ -18,13 +20,15 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
18
20
|
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
19
21
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
20
22
|
value: mod,
|
|
21
|
-
enumerable:
|
|
23
|
+
enumerable: true
|
|
22
24
|
}) : target, mod));
|
|
23
|
-
var import_vitest = require("vitest")
|
|
24
|
-
|
|
25
|
+
var import_vitest = require("vitest");
|
|
26
|
+
var import_index = require("./index.cjs");
|
|
25
27
|
(0, import_vitest.describe)("RExports", () => {
|
|
26
28
|
(0, import_vitest.it)("should contain all keys that the `react` package exports", async () => {
|
|
27
29
|
const React = (await import("react")).default;
|
|
28
|
-
for (const key in React)
|
|
30
|
+
for (const key in React) {
|
|
31
|
+
(0, import_vitest.expect)(import_index.RExports).toContain(key);
|
|
32
|
+
}
|
|
29
33
|
});
|
|
30
34
|
});
|
|
@@ -4,13 +4,15 @@ var __create = Object.create;
|
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
5
5
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
6
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
-
var __getProtoOf = Object.getPrototypeOf
|
|
8
|
-
|
|
7
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
9
|
var __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
12
|
+
get: () => from[key],
|
|
13
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
14
|
+
});
|
|
15
|
+
}
|
|
14
16
|
return to;
|
|
15
17
|
};
|
|
16
18
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
@@ -20,14 +22,16 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
20
22
|
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
21
23
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
22
24
|
value: mod,
|
|
23
|
-
enumerable:
|
|
25
|
+
enumerable: true
|
|
24
26
|
}) : target, mod));
|
|
25
|
-
var import_vitest = require("vitest")
|
|
26
|
-
|
|
27
|
+
var import_vitest = require("vitest");
|
|
28
|
+
var import_index = require("./index.native.js");
|
|
27
29
|
(0, import_vitest.describe)("RExports", function () {
|
|
28
30
|
(0, import_vitest.it)("should contain all keys that the `react` package exports", async function () {
|
|
29
31
|
var React = (await import("react")).default;
|
|
30
|
-
for (var key in React)
|
|
32
|
+
for (var key in React) {
|
|
33
|
+
(0, import_vitest.expect)(import_index.RExports).toContain(key);
|
|
34
|
+
}
|
|
31
35
|
});
|
|
32
36
|
});
|
|
33
37
|
//# sourceMappingURL=index.test.native.js.map
|