@absolutejs/absolute 0.18.3-beta.10 → 0.18.3-beta.11

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 CHANGED
@@ -173552,7 +173552,37 @@ __export(exports_devBuild, {
173552
173552
  import { readdir as readdir2 } from "fs/promises";
173553
173553
  import { statSync } from "fs";
173554
173554
  import { resolve as resolve19 } from "path";
173555
- var FRAMEWORK_DIR_KEYS, reloadConfig = async () => {
173555
+ var INTERNALS_KEYS, findInternals = (mod) => {
173556
+ for (const key of INTERNALS_KEYS) {
173557
+ const val = mod[key];
173558
+ if (val)
173559
+ return val;
173560
+ }
173561
+ return;
173562
+ }, bridgeReactInternals = async () => {
173563
+ const pinned = globalThis.__reactModuleRef;
173564
+ if (!pinned)
173565
+ return;
173566
+ const react = await import("react");
173567
+ if (pinned === react)
173568
+ return;
173569
+ const pinnedInternals = findInternals(pinned);
173570
+ const currentInternals = findInternals(react);
173571
+ if (!pinnedInternals || !currentInternals || pinnedInternals === currentInternals)
173572
+ return;
173573
+ for (const prop of Object.keys(pinnedInternals)) {
173574
+ Object.defineProperty(currentInternals, prop, {
173575
+ get() {
173576
+ return pinnedInternals[prop];
173577
+ },
173578
+ set(v) {
173579
+ pinnedInternals[prop] = v;
173580
+ },
173581
+ configurable: true,
173582
+ enumerable: true
173583
+ });
173584
+ }
173585
+ }, FRAMEWORK_DIR_KEYS, reloadConfig = async () => {
173556
173586
  try {
173557
173587
  const configPath2 = resolve19(process.env.ABSOLUTE_CONFIG ?? "absolute.config.ts");
173558
173588
  const source = await Bun.file(configPath2).text();
@@ -173632,6 +173662,9 @@ var FRAMEWORK_DIR_KEYS, reloadConfig = async () => {
173632
173662
  await cleanStaleAssets(state.assetStore, cached.manifest, state.resolvedPaths.buildDir);
173633
173663
  }
173634
173664
  state.rebuildCount++;
173665
+ if (state.config.reactDirectory) {
173666
+ await bridgeReactInternals();
173667
+ }
173635
173668
  } catch {} finally {
173636
173669
  state.isRebuilding = false;
173637
173670
  state.fileChangeQueue.clear();
@@ -173753,6 +173786,10 @@ var init_devBuild = __esm(() => {
173753
173786
  init_assetStore();
173754
173787
  init_rebuildTrigger();
173755
173788
  init_logger();
173789
+ INTERNALS_KEYS = [
173790
+ "__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE",
173791
+ "__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED"
173792
+ ];
173756
173793
  FRAMEWORK_DIR_KEYS = [
173757
173794
  "reactDirectory",
173758
173795
  "svelteDirectory",
@@ -173771,5 +173808,5 @@ export {
173771
173808
  build
173772
173809
  };
173773
173810
 
173774
- //# debugId=1F269857F58E64E164756E2164756E21
173811
+ //# debugId=34A8A1DFD618B3EB64756E2164756E21
173775
173812
  //# sourceMappingURL=build.js.map