@absolutejs/absolute 0.18.3-beta.10 → 0.18.3-beta.12
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/build.js +44 -1
- package/dist/build.js.map +5 -4
- package/dist/index.js +49 -37
- package/dist/index.js.map +6 -5
- package/dist/react/index.js +45 -37
- package/dist/react/index.js.map +5 -4
- package/dist/src/react/bridgeInternals.d.ts +1 -0
- package/package.json +1 -1
package/dist/build.js
CHANGED
|
@@ -173544,6 +173544,45 @@ var init_rebuildTrigger = __esm(() => {
|
|
|
173544
173544
|
init_webSocket();
|
|
173545
173545
|
});
|
|
173546
173546
|
|
|
173547
|
+
// src/react/bridgeInternals.ts
|
|
173548
|
+
var INTERNALS_KEYS, findInternals = (mod) => {
|
|
173549
|
+
for (const key of INTERNALS_KEYS) {
|
|
173550
|
+
const val = mod[key];
|
|
173551
|
+
if (val)
|
|
173552
|
+
return val;
|
|
173553
|
+
}
|
|
173554
|
+
return;
|
|
173555
|
+
}, bridgeReactInternals = async () => {
|
|
173556
|
+
const pinned = globalThis.__reactModuleRef;
|
|
173557
|
+
if (!pinned)
|
|
173558
|
+
return;
|
|
173559
|
+
const react = await import("react");
|
|
173560
|
+
if (pinned === react)
|
|
173561
|
+
return;
|
|
173562
|
+
const pinnedInternals = findInternals(pinned);
|
|
173563
|
+
const currentInternals = findInternals(react);
|
|
173564
|
+
if (!pinnedInternals || !currentInternals || pinnedInternals === currentInternals)
|
|
173565
|
+
return;
|
|
173566
|
+
for (const prop of Object.keys(pinnedInternals)) {
|
|
173567
|
+
Object.defineProperty(currentInternals, prop, {
|
|
173568
|
+
get() {
|
|
173569
|
+
return pinnedInternals[prop];
|
|
173570
|
+
},
|
|
173571
|
+
set(v) {
|
|
173572
|
+
pinnedInternals[prop] = v;
|
|
173573
|
+
},
|
|
173574
|
+
configurable: true,
|
|
173575
|
+
enumerable: true
|
|
173576
|
+
});
|
|
173577
|
+
}
|
|
173578
|
+
};
|
|
173579
|
+
var init_bridgeInternals = __esm(() => {
|
|
173580
|
+
INTERNALS_KEYS = [
|
|
173581
|
+
"__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE",
|
|
173582
|
+
"__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED"
|
|
173583
|
+
];
|
|
173584
|
+
});
|
|
173585
|
+
|
|
173547
173586
|
// src/core/devBuild.ts
|
|
173548
173587
|
var exports_devBuild = {};
|
|
173549
173588
|
__export(exports_devBuild, {
|
|
@@ -173632,6 +173671,9 @@ var FRAMEWORK_DIR_KEYS, reloadConfig = async () => {
|
|
|
173632
173671
|
await cleanStaleAssets(state.assetStore, cached.manifest, state.resolvedPaths.buildDir);
|
|
173633
173672
|
}
|
|
173634
173673
|
state.rebuildCount++;
|
|
173674
|
+
if (state.config.reactDirectory) {
|
|
173675
|
+
await bridgeReactInternals();
|
|
173676
|
+
}
|
|
173635
173677
|
} catch {} finally {
|
|
173636
173678
|
state.isRebuilding = false;
|
|
173637
173679
|
state.fileChangeQueue.clear();
|
|
@@ -173753,6 +173795,7 @@ var init_devBuild = __esm(() => {
|
|
|
173753
173795
|
init_assetStore();
|
|
173754
173796
|
init_rebuildTrigger();
|
|
173755
173797
|
init_logger();
|
|
173798
|
+
init_bridgeInternals();
|
|
173756
173799
|
FRAMEWORK_DIR_KEYS = [
|
|
173757
173800
|
"reactDirectory",
|
|
173758
173801
|
"svelteDirectory",
|
|
@@ -173771,5 +173814,5 @@ export {
|
|
|
173771
173814
|
build
|
|
173772
173815
|
};
|
|
173773
173816
|
|
|
173774
|
-
//# debugId=
|
|
173817
|
+
//# debugId=06783D7A3151535164756E2164756E21
|
|
173775
173818
|
//# sourceMappingURL=build.js.map
|