@absolutejs/absolute 0.18.3-beta.11 → 0.18.3-beta.13
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 +20 -14
- package/dist/build.js.map +5 -4
- package/dist/index.js +25 -15
- package/dist/index.js.map +6 -5
- package/dist/src/react/bridgeInternals.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -173544,14 +173544,7 @@ var init_rebuildTrigger = __esm(() => {
|
|
|
173544
173544
|
init_webSocket();
|
|
173545
173545
|
});
|
|
173546
173546
|
|
|
173547
|
-
// src/
|
|
173548
|
-
var exports_devBuild = {};
|
|
173549
|
-
__export(exports_devBuild, {
|
|
173550
|
-
devBuild: () => devBuild
|
|
173551
|
-
});
|
|
173552
|
-
import { readdir as readdir2 } from "fs/promises";
|
|
173553
|
-
import { statSync } from "fs";
|
|
173554
|
-
import { resolve as resolve20 } from "path";
|
|
173547
|
+
// src/react/bridgeInternals.ts
|
|
173555
173548
|
var INTERNALS_KEYS, findInternals = (mod) => {
|
|
173556
173549
|
for (const key of INTERNALS_KEYS) {
|
|
173557
173550
|
const val = mod[key];
|
|
@@ -173582,7 +173575,23 @@ var INTERNALS_KEYS, findInternals = (mod) => {
|
|
|
173582
173575
|
enumerable: true
|
|
173583
173576
|
});
|
|
173584
173577
|
}
|
|
173585
|
-
}
|
|
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
|
+
|
|
173586
|
+
// src/core/devBuild.ts
|
|
173587
|
+
var exports_devBuild = {};
|
|
173588
|
+
__export(exports_devBuild, {
|
|
173589
|
+
devBuild: () => devBuild
|
|
173590
|
+
});
|
|
173591
|
+
import { readdir as readdir2 } from "fs/promises";
|
|
173592
|
+
import { statSync } from "fs";
|
|
173593
|
+
import { resolve as resolve20 } from "path";
|
|
173594
|
+
var FRAMEWORK_DIR_KEYS, reloadConfig = async () => {
|
|
173586
173595
|
try {
|
|
173587
173596
|
const configPath2 = resolve20(process.env.ABSOLUTE_CONFIG ?? "absolute.config.ts");
|
|
173588
173597
|
const source = await Bun.file(configPath2).text();
|
|
@@ -173786,10 +173795,7 @@ var init_devBuild = __esm(() => {
|
|
|
173786
173795
|
init_assetStore();
|
|
173787
173796
|
init_rebuildTrigger();
|
|
173788
173797
|
init_logger();
|
|
173789
|
-
|
|
173790
|
-
"__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE",
|
|
173791
|
-
"__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED"
|
|
173792
|
-
];
|
|
173798
|
+
init_bridgeInternals();
|
|
173793
173799
|
FRAMEWORK_DIR_KEYS = [
|
|
173794
173800
|
"reactDirectory",
|
|
173795
173801
|
"svelteDirectory",
|
|
@@ -173818,7 +173824,10 @@ var STORE_KEY = "__elysiaStore", getGlobalValue = (key) => Reflect.get(globalThi
|
|
|
173818
173824
|
Reflect.set(globalThis, STORE_KEY, app.store);
|
|
173819
173825
|
}, hmr = (hmrState2, manifest) => (app) => {
|
|
173820
173826
|
restoreStore(app);
|
|
173821
|
-
return app.onBeforeHandle(({ request }) => {
|
|
173827
|
+
return app.onBeforeHandle(async ({ request }) => {
|
|
173828
|
+
if (globalThis.__reactModuleRef) {
|
|
173829
|
+
await bridgeReactInternals();
|
|
173830
|
+
}
|
|
173822
173831
|
const rawUrl = request.url;
|
|
173823
173832
|
const qIdx = rawUrl.indexOf("?");
|
|
173824
173833
|
const pathEnd = qIdx === UNFOUND_INDEX ? rawUrl.length : qIdx;
|
|
@@ -173850,6 +173859,7 @@ var STORE_KEY = "__elysiaStore", getGlobalValue = (key) => Reflect.get(globalThi
|
|
|
173850
173859
|
var init_hmr = __esm(() => {
|
|
173851
173860
|
init_constants();
|
|
173852
173861
|
init_assetStore();
|
|
173862
|
+
init_bridgeInternals();
|
|
173853
173863
|
init_webSocket();
|
|
173854
173864
|
});
|
|
173855
173865
|
// types/client.ts
|
|
@@ -174232,5 +174242,5 @@ export {
|
|
|
174232
174242
|
ANGULAR_INIT_TIMEOUT_MS
|
|
174233
174243
|
};
|
|
174234
174244
|
|
|
174235
|
-
//# debugId=
|
|
174245
|
+
//# debugId=FE804BF44B83A4E064756E2164756E21
|
|
174236
174246
|
//# sourceMappingURL=index.js.map
|