vxrn 1.12.8 → 1.13.0
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/config/getAdditionalViteConfig.mjs +1 -4
- package/dist/config/getAdditionalViteConfig.mjs.map +1 -1
- package/dist/config/getAdditionalViteConfig.native.js +1 -4
- package/dist/config/getAdditionalViteConfig.native.js.map +1 -1
- package/dist/config/getReactNativePlugins.mjs +1 -5
- package/dist/config/getReactNativePlugins.mjs.map +1 -1
- package/dist/config/getReactNativePlugins.native.js +1 -5
- package/dist/config/getReactNativePlugins.native.js.map +1 -1
- package/dist/exports/build.mjs +5 -0
- package/dist/exports/build.mjs.map +1 -1
- package/dist/exports/build.native.js +5 -0
- package/dist/exports/build.native.js.map +1 -1
- package/dist/exports/createServer.mjs +30 -25
- package/dist/exports/createServer.mjs.map +1 -1
- package/dist/exports/createServer.native.js +6 -3
- package/dist/exports/createServer.native.js.map +1 -1
- package/dist/exports/prebuild.mjs +25 -1
- package/dist/exports/prebuild.mjs.map +1 -1
- package/dist/exports/prebuild.native.js +30 -1
- package/dist/exports/prebuild.native.js.map +1 -1
- package/dist/exports/serve.mjs +2 -2
- package/dist/exports/serve.mjs.map +1 -1
- package/dist/exports/serve.native.js +2 -2
- package/dist/exports/serve.native.js.map +1 -1
- package/dist/exports/serveStaticAssets.mjs +43 -11
- package/dist/exports/serveStaticAssets.mjs.map +1 -1
- package/dist/exports/serveStaticAssets.native.js +69 -6
- package/dist/exports/serveStaticAssets.native.js.map +1 -1
- package/dist/index.js +1 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -2
- package/dist/index.mjs.map +1 -1
- package/dist/index.native.js +1 -2
- package/dist/index.native.js.map +1 -1
- package/dist/patches/builtInDepPatches.mjs +14 -0
- package/dist/patches/builtInDepPatches.mjs.map +1 -1
- package/dist/patches/builtInDepPatches.native.js +14 -0
- package/dist/patches/builtInDepPatches.native.js.map +1 -1
- package/dist/plugins/clientInjectPlugin.mjs +2 -62
- package/dist/plugins/clientInjectPlugin.mjs.map +1 -1
- package/dist/plugins/clientInjectPlugin.native.js +2 -75
- package/dist/plugins/clientInjectPlugin.native.js.map +1 -1
- package/dist/plugins/reactNativeDevAssetPlugin.mjs +1 -3
- package/dist/plugins/reactNativeDevAssetPlugin.mjs.map +1 -1
- package/dist/plugins/reactNativeDevAssetPlugin.native.js +1 -3
- package/dist/plugins/reactNativeDevAssetPlugin.native.js.map +1 -1
- package/dist/plugins/reactNativeDevServer.mjs +55 -77
- package/dist/plugins/reactNativeDevServer.mjs.map +1 -1
- package/dist/plugins/reactNativeDevServer.native.js +73 -84
- package/dist/plugins/reactNativeDevServer.native.js.map +1 -1
- package/dist/plugins/serverExtensions.test.mjs +12 -6
- package/dist/plugins/serverExtensions.test.mjs.map +1 -1
- package/dist/plugins/serverExtensions.test.native.js +12 -6
- package/dist/plugins/serverExtensions.test.native.js.map +1 -1
- package/dist/rn-commands/bundle/buildBundle.mjs +11 -35
- package/dist/rn-commands/bundle/buildBundle.mjs.map +1 -1
- package/dist/rn-commands/bundle/buildBundle.native.js +9 -36
- package/dist/rn-commands/bundle/buildBundle.native.js.map +1 -1
- package/dist/runtime/hmr-client.mjs +125 -0
- package/dist/runtime/hmr-client.mjs.map +1 -0
- package/dist/runtime/hmr-client.native.js +197 -0
- package/dist/runtime/hmr-client.native.js.map +1 -0
- package/dist/runtime/hmr-runtime.mjs +162 -0
- package/dist/runtime/hmr-runtime.mjs.map +1 -0
- package/dist/runtime/hmr-runtime.native.js +348 -0
- package/dist/runtime/hmr-runtime.native.js.map +1 -0
- package/dist/runtime/hmr-types.mjs +2 -0
- package/dist/runtime/hmr-types.mjs.map +1 -0
- package/dist/runtime/hmr-types.native.js +2 -0
- package/dist/runtime/hmr-types.native.js.map +1 -0
- package/dist/runtime/native-prelude.mjs +97 -0
- package/dist/runtime/native-prelude.mjs.map +1 -0
- package/dist/runtime/native-prelude.native.js +97 -0
- package/dist/runtime/native-prelude.native.js.map +1 -0
- package/dist/runtime/react-refresh-utils.mjs +19 -0
- package/dist/runtime/react-refresh-utils.mjs.map +1 -0
- package/dist/runtime/react-refresh-utils.native.js +24 -0
- package/dist/runtime/react-refresh-utils.native.js.map +1 -0
- package/dist/utils/createNativeDevEngine.mjs +661 -0
- package/dist/utils/createNativeDevEngine.mjs.map +1 -0
- package/dist/utils/createNativeDevEngine.native.js +702 -0
- package/dist/utils/createNativeDevEngine.native.js.map +1 -0
- package/dist/utils/patches.mjs +6 -2
- package/dist/utils/patches.mjs.map +1 -1
- package/dist/utils/patches.native.js +6 -2
- package/dist/utils/patches.native.js.map +1 -1
- package/dist/utils/scanDepsToOptimize.mjs +4 -3
- package/dist/utils/scanDepsToOptimize.mjs.map +1 -1
- package/dist/utils/scanDepsToOptimize.native.js +4 -3
- package/dist/utils/scanDepsToOptimize.native.js.map +1 -1
- package/expo-plugin.cjs +122 -0
- package/package.json +15 -19
- package/src/config/getAdditionalViteConfig.ts +1 -3
- package/src/config/getReactNativePlugins.ts +0 -6
- package/src/exports/build.ts +5 -0
- package/src/exports/createServer.ts +7 -2
- package/src/exports/prebuild.ts +45 -0
- package/src/exports/serve.ts +2 -1
- package/src/exports/serveStaticAssets.ts +67 -4
- package/src/index.ts +0 -2
- package/src/patches/builtInDepPatches.ts +29 -0
- package/src/plugins/clientInjectPlugin.ts +2 -109
- package/src/plugins/reactNativeDevAssetPlugin.ts +0 -21
- package/src/plugins/reactNativeDevServer.ts +57 -84
- package/src/plugins/serverExtensions.test.ts +6 -8
- package/src/rn-commands/bundle/buildBundle.ts +9 -62
- package/src/runtime/hmr-client.ts +215 -0
- package/src/runtime/hmr-runtime.ts +276 -0
- package/src/runtime/hmr-types.ts +84 -0
- package/src/runtime/native-prelude.ts +110 -0
- package/src/runtime/react-refresh-utils.ts +36 -0
- package/src/types.ts +22 -4
- package/src/utils/createNativeDevEngine.ts +942 -0
- package/src/utils/patches.ts +36 -18
- package/src/utils/scanDepsToOptimize.ts +2 -3
- package/types/config/getAdditionalViteConfig.d.ts.map +1 -1
- package/types/config/getOptionsFilled.d.ts +2 -18
- package/types/config/getOptionsFilled.d.ts.map +1 -1
- package/types/config/getReactNativePlugins.d.ts.map +1 -1
- package/types/exports/build.d.ts +1 -9
- package/types/exports/build.d.ts.map +1 -1
- package/types/exports/createServer.d.ts.map +1 -1
- package/types/exports/prebuild.d.ts.map +1 -1
- package/types/exports/serve.d.ts +2 -1
- package/types/exports/serve.d.ts.map +1 -1
- package/types/exports/serveStaticAssets.d.ts +12 -1
- package/types/exports/serveStaticAssets.d.ts.map +1 -1
- package/types/index.d.ts +0 -1
- package/types/index.d.ts.map +1 -1
- package/types/patches/builtInDepPatches.d.ts.map +1 -1
- package/types/plugins/clientInjectPlugin.d.ts +1 -7
- package/types/plugins/clientInjectPlugin.d.ts.map +1 -1
- package/types/plugins/reactNativeDevAssetPlugin.d.ts.map +1 -1
- package/types/plugins/reactNativeDevServer.d.ts.map +1 -1
- package/types/rn-commands/bundle/buildBundle.d.ts.map +1 -1
- package/types/runtime/hmr-client.d.ts +40 -0
- package/types/runtime/hmr-client.d.ts.map +1 -0
- package/types/runtime/hmr-runtime.d.ts +69 -0
- package/types/runtime/hmr-runtime.d.ts.map +1 -0
- package/types/runtime/hmr-types.d.ts +76 -0
- package/types/runtime/hmr-types.d.ts.map +1 -0
- package/types/runtime/native-prelude.d.ts +11 -0
- package/types/runtime/native-prelude.d.ts.map +1 -0
- package/types/runtime/react-refresh-utils.d.ts +3 -0
- package/types/runtime/react-refresh-utils.d.ts.map +1 -0
- package/types/types.d.ts +15 -1
- package/types/types.d.ts.map +1 -1
- package/types/utils/createNativeDevEngine.d.ts +42 -0
- package/types/utils/createNativeDevEngine.d.ts.map +1 -0
- package/types/utils/patches.d.ts.map +1 -1
- package/types/utils/scanDepsToOptimize.d.ts.map +1 -1
- package/dist/config/getReactNativeBuildConfig.mjs +0 -200
- package/dist/config/getReactNativeBuildConfig.mjs.map +0 -1
- package/dist/config/getReactNativeBuildConfig.native.js +0 -204
- package/dist/config/getReactNativeBuildConfig.native.js.map +0 -1
- package/dist/plugins/reactNativeHMRPlugin.mjs +0 -120
- package/dist/plugins/reactNativeHMRPlugin.mjs.map +0 -1
- package/dist/plugins/reactNativeHMRPlugin.native.js +0 -151
- package/dist/plugins/reactNativeHMRPlugin.native.js.map +0 -1
- package/dist/utils/filterPluginsForNative.mjs +0 -27
- package/dist/utils/filterPluginsForNative.mjs.map +0 -1
- package/dist/utils/filterPluginsForNative.native.js +0 -33
- package/dist/utils/filterPluginsForNative.native.js.map +0 -1
- package/dist/utils/getReactNativeBundle.mjs +0 -104
- package/dist/utils/getReactNativeBundle.mjs.map +0 -1
- package/dist/utils/getReactNativeBundle.native.js +0 -135
- package/dist/utils/getReactNativeBundle.native.js.map +0 -1
- package/dist/utils/hotUpdateCache.mjs +0 -3
- package/dist/utils/hotUpdateCache.mjs.map +0 -1
- package/dist/utils/hotUpdateCache.native.js +0 -3
- package/dist/utils/hotUpdateCache.native.js.map +0 -1
- package/dist/utils/isBuildingNativeBundle.mjs +0 -6
- package/dist/utils/isBuildingNativeBundle.mjs.map +0 -1
- package/dist/utils/isBuildingNativeBundle.native.js +0 -7
- package/dist/utils/isBuildingNativeBundle.native.js.map +0 -1
- package/dist/utils/swapPrebuiltReactModules.mjs +0 -168
- package/dist/utils/swapPrebuiltReactModules.mjs.map +0 -1
- package/dist/utils/swapPrebuiltReactModules.native.js +0 -181
- package/dist/utils/swapPrebuiltReactModules.native.js.map +0 -1
- package/dist/worker.mjs +0 -55
- package/dist/worker.mjs.map +0 -1
- package/dist/worker.native.js +0 -55
- package/dist/worker.native.js.map +0 -1
- package/react-native-template.js +0 -375
- package/src/config/getReactNativeBuildConfig.ts +0 -349
- package/src/plugins/reactNativeHMRPlugin.ts +0 -237
- package/src/utils/filterPluginsForNative.ts +0 -55
- package/src/utils/getReactNativeBundle.ts +0 -243
- package/src/utils/hotUpdateCache.ts +0 -1
- package/src/utils/isBuildingNativeBundle.ts +0 -7
- package/src/utils/swapPrebuiltReactModules.ts +0 -341
- package/src/worker.ts +0 -90
- package/types/config/getReactNativeBuildConfig.d.ts +0 -72
- package/types/config/getReactNativeBuildConfig.d.ts.map +0 -1
- package/types/plugins/reactNativeHMRPlugin.d.ts +0 -10
- package/types/plugins/reactNativeHMRPlugin.d.ts.map +0 -1
- package/types/utils/filterPluginsForNative.d.ts +0 -8
- package/types/utils/filterPluginsForNative.d.ts.map +0 -1
- package/types/utils/getReactNativeBundle.d.ts +0 -12
- package/types/utils/getReactNativeBundle.d.ts.map +0 -1
- package/types/utils/hotUpdateCache.d.ts +0 -2
- package/types/utils/hotUpdateCache.d.ts.map +0 -1
- package/types/utils/isBuildingNativeBundle.d.ts +0 -3
- package/types/utils/isBuildingNativeBundle.d.ts.map +0 -1
- package/types/utils/swapPrebuiltReactModules.d.ts +0 -9
- package/types/utils/swapPrebuiltReactModules.d.ts.map +0 -1
- package/types/worker.d.ts +0 -13
- package/types/worker.d.ts.map +0 -1
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
function getNativePrelude(options) {
|
|
2
|
+
return `
|
|
3
|
+
var __BUNDLE_START_TIME__ = globalThis.nativePerformanceNow ? nativePerformanceNow() : Date.now();
|
|
4
|
+
|
|
5
|
+
var global = typeof globalThis !== 'undefined' ? globalThis
|
|
6
|
+
: typeof global !== 'undefined' ? global
|
|
7
|
+
: typeof window !== 'undefined' ? window
|
|
8
|
+
: this;
|
|
9
|
+
|
|
10
|
+
globalThis.global = global;
|
|
11
|
+
globalThis.__DEV__ = ${options.dev};
|
|
12
|
+
|
|
13
|
+
// react native polyfills
|
|
14
|
+
global.__FUSEBOX_HAS_FULL_CONSOLE_SUPPORT__ = false;
|
|
15
|
+
global.Event = global.Event || function() { return this; };
|
|
16
|
+
global.dispatchEvent = global.dispatchEvent || function() {};
|
|
17
|
+
global.window = global.window || global;
|
|
18
|
+
global.self = global.self || global;
|
|
19
|
+
global.navigator = global.navigator || { product: 'ReactNative', userAgent: '' };
|
|
20
|
+
global.performance = global.performance || { now: function() { return Date.now(); } };
|
|
21
|
+
|
|
22
|
+
// ErrorUtils - used by RN's error handling system
|
|
23
|
+
if (!global.ErrorUtils) {
|
|
24
|
+
var _handler = null;
|
|
25
|
+
global.ErrorUtils = {
|
|
26
|
+
setGlobalHandler: function(h) { _handler = h; },
|
|
27
|
+
getGlobalHandler: function() { return _handler; },
|
|
28
|
+
reportFatalError: function(e) { if (_handler) _handler(e, true); else throw e; },
|
|
29
|
+
reportError: function(e) { if (_handler) _handler(e, false); },
|
|
30
|
+
applyWithGuard: function(fn, ctx, args) { try { return fn.apply(ctx, args); } catch(e) { this.reportError(e); } },
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
if (typeof process === 'undefined') {
|
|
35
|
+
globalThis.process = { env: {} };
|
|
36
|
+
}
|
|
37
|
+
process.env.NODE_ENV = ${JSON.stringify(options.dev ? "development" : "production")};
|
|
38
|
+
process.env.EXPO_OS = ${JSON.stringify(options.platform)};
|
|
39
|
+
${options.serverUrl ? `process.env.ONE_SERVER_URL = ${JSON.stringify(options.serverUrl)};` : ""}
|
|
40
|
+
|
|
41
|
+
// polyfill setImmediate (used by react-native internals)
|
|
42
|
+
if (typeof globalThis.setImmediate === 'undefined') {
|
|
43
|
+
globalThis.setImmediate = function(fn) { return setTimeout(fn, 0); };
|
|
44
|
+
globalThis.clearImmediate = function(id) { clearTimeout(id); };
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
// polyfill URLSearchParams early (before whatwg-fetch checks for it)
|
|
48
|
+
// RN's polyfillGlobal sets this up later but some modules check at import time
|
|
49
|
+
if (typeof globalThis.URLSearchParams === 'undefined') {
|
|
50
|
+
// minimal URLSearchParams polyfill - will be overridden by RN's proper one
|
|
51
|
+
globalThis.URLSearchParams = function URLSearchParams(init) {
|
|
52
|
+
this._params = {};
|
|
53
|
+
if (typeof init === 'string') {
|
|
54
|
+
init.replace(/^\\?/, '').split('&').forEach(function(p) {
|
|
55
|
+
var kv = p.split('=');
|
|
56
|
+
if (kv[0]) this._params[decodeURIComponent(kv[0])] = decodeURIComponent(kv[1] || '');
|
|
57
|
+
}.bind(this));
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
globalThis.URLSearchParams.prototype.get = function(k) { return this._params[k] || null; };
|
|
61
|
+
globalThis.URLSearchParams.prototype.toString = function() {
|
|
62
|
+
return Object.keys(this._params).map(function(k) { return encodeURIComponent(k) + '=' + encodeURIComponent(this._params[k]); }.bind(this)).join('&');
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
// suppress HMRClient.setup() error from native side
|
|
67
|
+
// native calls HMRClient.setup() during bundle load but we don't use Metro HMR
|
|
68
|
+
// this intercept catches the error and prevents the red screen
|
|
69
|
+
var __origErrorHandler = globalThis.ErrorUtils && globalThis.ErrorUtils.getGlobalHandler && globalThis.ErrorUtils.getGlobalHandler();
|
|
70
|
+
if (globalThis.ErrorUtils && globalThis.ErrorUtils.setGlobalHandler) {
|
|
71
|
+
globalThis.ErrorUtils.setGlobalHandler(function(error, isFatal) {
|
|
72
|
+
if (error && error.message && error.message.indexOf('HMRClient') !== -1) {
|
|
73
|
+
// suppress HMRClient errors silently
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
if (__origErrorHandler) __origErrorHandler(error, isFatal);
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
// reanimated compat - these console methods must exist to avoid EXC_BAD_ACCESS crash
|
|
81
|
+
console.assert = console.assert || function() {};
|
|
82
|
+
console.clear = console.clear || function() {};
|
|
83
|
+
console.dir = console.dir || function() {};
|
|
84
|
+
console.dirxml = console.dirxml || function() {};
|
|
85
|
+
console.profile = console.profile || function() {};
|
|
86
|
+
console.profileEnd = console.profileEnd || function() {};
|
|
87
|
+
console.table = console.table || function() {};
|
|
88
|
+
|
|
89
|
+
// react refresh stubs (overridden by react-refresh plugin in dev)
|
|
90
|
+
${options.dev ? `
|
|
91
|
+
var $RefreshReg$ = function() {};
|
|
92
|
+
var $RefreshSig$ = function() { return function(v) { return v; }; };
|
|
93
|
+
` : ""}
|
|
94
|
+
`.trim();
|
|
95
|
+
}
|
|
96
|
+
export { getNativePrelude };
|
|
97
|
+
//# sourceMappingURL=native-prelude.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["getNativePrelude","options","dev","JSON","stringify","platform","serverUrl","trim"],"sources":["../../src/runtime/native-prelude.ts"],"sourcesContent":[null],"mappings":"AAOO,SAASA,iBAAiBC,OAAA,EAItB;EACT,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,uBAScA,OAAA,CAAQC,GAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,yBA0BTC,IAAA,CAAKC,SAAA,CAAUH,OAAA,CAAQC,GAAA,GAAM,gBAAgB,YAAY,CAAC;AAAA,wBAC3DC,IAAA,CAAKC,SAAA,CAAUH,OAAA,CAAQI,QAAQ,CAAC;AAAA,EACtDJ,OAAA,CAAQK,SAAA,GAAY,gCAAgCH,IAAA,CAAKC,SAAA,CAAUH,OAAA,CAAQK,SAAS,CAAC,MAAM,EAAE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAoD7FL,OAAA,CAAQC,GAAA,GACJ;AAAA;AAAA;AAAA,IAIA,EACN;AAAA,EACEK,IAAA,CAAK;AACP","ignoreList":[]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
function isReactRefreshBoundary(moduleExports) {
|
|
2
|
+
if (globalThis.__ReactRefresh.isLikelyComponentType(moduleExports)) return !0;
|
|
3
|
+
if (moduleExports == null || typeof moduleExports != "object") return !1;
|
|
4
|
+
var hasExports = !1,
|
|
5
|
+
areAllExportsComponents = !0;
|
|
6
|
+
for (var key in moduleExports) if (hasExports = !0, key !== "__esModule") {
|
|
7
|
+
var exportValue = moduleExports[key];
|
|
8
|
+
globalThis.__ReactRefresh.isLikelyComponentType(exportValue) || (areAllExportsComponents = !1);
|
|
9
|
+
}
|
|
10
|
+
return hasExports && areAllExportsComponents;
|
|
11
|
+
}
|
|
12
|
+
let timer = null;
|
|
13
|
+
function enqueueUpdate() {
|
|
14
|
+
timer || (timer = setTimeout(() => {
|
|
15
|
+
globalThis.__ReactRefresh.performReactRefresh(), timer = null;
|
|
16
|
+
}, 50));
|
|
17
|
+
}
|
|
18
|
+
export { enqueueUpdate, isReactRefreshBoundary };
|
|
19
|
+
//# sourceMappingURL=react-refresh-utils.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["isReactRefreshBoundary","moduleExports","globalThis","__ReactRefresh","isLikelyComponentType","hasExports","areAllExportsComponents","key","exportValue","timer","enqueueUpdate","setTimeout","performReactRefresh"],"sources":["../../src/runtime/react-refresh-utils.ts"],"sourcesContent":[null],"mappings":"AAAO,SAASA,uBAAuBC,aAAA,EAAwC;EAC7E,IAAIC,UAAA,CAAWC,cAAA,CAAeC,qBAAA,CAAsBH,aAAa,GAC/D,OAAO;EAGT,IAEEA,aAAA,IAAkB,QAClB,OAAOA,aAAA,IAAkB,UAEzB,OAAO;EAGT,IAAII,UAAA,GAAa;IACbC,uBAAA,GAA0B;EAC9B,SAASC,GAAA,IAAON,aAAA,EAEd,IADAI,UAAA,GAAa,IACTE,GAAA,KAAQ,cACZ;IAAA,IAAIC,WAAA,GAAcP,aAAA,CAAcM,GAAG;IAC9BL,UAAA,CAAWC,cAAA,CAAeC,qBAAA,CAAsBI,WAAW,MAC9DF,uBAAA,GAA0B;EAAA;EAI9B,OAAOD,UAAA,IAAcC,uBAAA;AACvB;AAEA,IAAIG,KAAA,GAA8C;AAE3C,SAASC,cAAA,EAAgB;EAC1BD,KAAA,KACJA,KAAA,GAAQE,UAAA,CAAW,MAAM;IACvBT,UAAA,CAAWC,cAAA,CAAeS,mBAAA,CAAoB,GAC9CH,KAAA,GAAQ;EACV,GAAG,EAAE;AACP","ignoreList":[]}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
function _type_of(obj) {
|
|
2
|
+
"@swc/helpers - typeof";
|
|
3
|
+
|
|
4
|
+
return obj && typeof Symbol < "u" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
5
|
+
}
|
|
6
|
+
function isReactRefreshBoundary(moduleExports) {
|
|
7
|
+
if (globalThis.__ReactRefresh.isLikelyComponentType(moduleExports)) return !0;
|
|
8
|
+
if (moduleExports == null || (typeof moduleExports > "u" ? "undefined" : _type_of(moduleExports)) !== "object") return !1;
|
|
9
|
+
var hasExports = !1,
|
|
10
|
+
areAllExportsComponents = !0;
|
|
11
|
+
for (var key in moduleExports) if (hasExports = !0, key !== "__esModule") {
|
|
12
|
+
var exportValue = moduleExports[key];
|
|
13
|
+
globalThis.__ReactRefresh.isLikelyComponentType(exportValue) || (areAllExportsComponents = !1);
|
|
14
|
+
}
|
|
15
|
+
return hasExports && areAllExportsComponents;
|
|
16
|
+
}
|
|
17
|
+
var timer = null;
|
|
18
|
+
function enqueueUpdate() {
|
|
19
|
+
timer || (timer = setTimeout(function () {
|
|
20
|
+
globalThis.__ReactRefresh.performReactRefresh(), timer = null;
|
|
21
|
+
}, 50));
|
|
22
|
+
}
|
|
23
|
+
export { enqueueUpdate, isReactRefreshBoundary };
|
|
24
|
+
//# sourceMappingURL=react-refresh-utils.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_type_of","obj","Symbol","constructor","isReactRefreshBoundary","moduleExports","globalThis","__ReactRefresh","isLikelyComponentType","hasExports","areAllExportsComponents","key","exportValue","timer","enqueueUpdate"],"sources":["../../src/runtime/react-refresh-utils.ts"],"sourcesContent":[null],"mappings":"AAAO,SAASA,SAAAC,GAAA;EACd,uBAAe;;EACb,OAAAA,GAAO,WAAAC,MAAA,UAAAD,GAAA,CAAAE,WAAA,KAAAD,MAAA,qBAAAD,GAAA;AAGT;AAKE,SAAAG,sBAAOA,CAAAC,aAAA;EAGT,IAAIC,UAAA,CAAAC,cACA,CAAAC,qBAA0B,CAAAH,aAAA,GAC9B,OAAS;EAEP,IAAAA,aADA,IAAa,IACT,YAAQA,aACZ,uBAAAL,QAAA,CAAAK,aAAA,wBAAI;EACJ,IAAKI,UAAA,GAAW;IAAAC,uBAAe;EACH,SAAAC,GAAA,IAAAN,aAAA,EAI9B,IAAAI,UAAO,KAAc,EAAAE,GAAA;IACvB,IAAAC,WAAA,GAAAP,aAAA,CAAAM,GAAA;IAEIL,UAA8C,CAAAC,cAAA,CAAAC,qBAAA,CAAAI,WAAA,MAAAF,uBAAA;EAE3C;EACD,OAAAD,UACJ,IAAQC,uBAAiB;AACvB;AACQ,IACVG,KAAK;AACP,SAAAC,cAAA","ignoreList":[]}
|