@absolutejs/absolute 0.19.0-beta.1010 → 0.19.0-beta.1011

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.
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  var __require = import.meta.require;
3
3
 
4
- // .angular-partial-tmp-jXaXWU/src/core/streamingSlotRegistrar.ts
4
+ // .angular-partial-tmp-hOJXZC/src/core/streamingSlotRegistrar.ts
5
5
  var STREAMING_SLOT_REGISTRAR_KEY = Symbol.for("absolutejs.streamingSlotRegistrar");
6
6
  var STREAMING_SLOT_WARNING_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotWarningController");
7
7
  var STREAMING_SLOT_COLLECTION_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotCollectionController");
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  var __require = import.meta.require;
3
3
 
4
- // .angular-partial-tmp-jXaXWU/src/core/streamingSlotRegistrar.ts
4
+ // .angular-partial-tmp-hOJXZC/src/core/streamingSlotRegistrar.ts
5
5
  var STREAMING_SLOT_REGISTRAR_KEY = Symbol.for("absolutejs.streamingSlotRegistrar");
6
6
  var STREAMING_SLOT_WARNING_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotWarningController");
7
7
  var STREAMING_SLOT_COLLECTION_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotCollectionController");
@@ -48,7 +48,7 @@ var warnMissingStreamingSlotCollector = (primitiveName) => {
48
48
  getWarningController()?.maybeWarn(primitiveName);
49
49
  };
50
50
 
51
- // .angular-partial-tmp-jXaXWU/src/core/streamingSlotRegistry.ts
51
+ // .angular-partial-tmp-hOJXZC/src/core/streamingSlotRegistry.ts
52
52
  var STREAMING_SLOT_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotAsyncLocalStorage");
53
53
  var isObjectRecord2 = (value) => Boolean(value) && typeof value === "object";
54
54
  var isAsyncLocalStorage = (value) => isObjectRecord2(value) && ("getStore" in value) && typeof value.getStore === "function" && ("run" in value) && typeof value.run === "function";
package/dist/build.js CHANGED
@@ -18727,21 +18727,9 @@ var resolveJsxDevRuntimeCompatPath = () => {
18727
18727
  }
18728
18728
  }
18729
18729
  return (candidates[0] ?? resolve24(import.meta.dir, "react", "jsxDevRuntimeCompat.js")).replace(/\\/g, "/");
18730
- }, jsxDevRuntimeCompatPath, reactSpecifiers, isResolvable = (specifier) => {
18731
- try {
18732
- Bun.resolveSync(specifier, process.cwd());
18733
- return true;
18734
- } catch {
18735
- return false;
18736
- }
18737
- }, resolveVendorSpecifiers = () => {
18738
- if (isResolvable("react-refresh/runtime")) {
18739
- return [...reactSpecifiers, "react-refresh/runtime"];
18740
- }
18741
- return reactSpecifiers;
18742
- }, toSafeFileName = (specifier) => specifier.replace(/\//g, "_"), computeVendorPaths = () => {
18730
+ }, jsxDevRuntimeCompatPath, reactSpecifiers, toSafeFileName = (specifier) => specifier.replace(/\//g, "_"), computeVendorPaths = () => {
18743
18731
  const paths = {};
18744
- for (const specifier of resolveVendorSpecifiers()) {
18732
+ for (const specifier of reactSpecifiers) {
18745
18733
  paths[specifier] = `/react/vendor/${toSafeFileName(specifier)}.js`;
18746
18734
  }
18747
18735
  return paths;
@@ -18767,7 +18755,7 @@ var resolveJsxDevRuntimeCompatPath = () => {
18767
18755
  mkdirSync8(vendorDir, { recursive: true });
18768
18756
  const tmpDir = join30(buildDir, "_vendor_tmp");
18769
18757
  mkdirSync8(tmpDir, { recursive: true });
18770
- const specifiers = resolveVendorSpecifiers();
18758
+ const specifiers = reactSpecifiers;
18771
18759
  const entrypoints = await Promise.all(specifiers.map(async (specifier) => {
18772
18760
  const safeName = toSafeFileName(specifier);
18773
18761
  const entryPath = join30(tmpDir, `${safeName}.ts`);
@@ -18838,7 +18826,7 @@ import { mkdirSync as mkdirSync9 } from "fs";
18838
18826
  import { join as join31 } from "path";
18839
18827
  import { rm as rm6 } from "fs/promises";
18840
18828
  var {build: bunBuild4, Glob: Glob7 } = globalThis.Bun;
18841
- var REQUIRED_ANGULAR_SPECIFIERS_BASE, requiredAngularSpecifiers = (jitMode) => jitMode ? [...REQUIRED_ANGULAR_SPECIFIERS_BASE, "@angular/compiler"] : REQUIRED_ANGULAR_SPECIFIERS_BASE, SERVER_ONLY_ANGULAR_SPECIFIERS, BUILD_ONLY_ANGULAR_SPECIFIER_PREFIXES, isBuildOnlyAngularSpecifier = (spec) => BUILD_ONLY_ANGULAR_SPECIFIER_PREFIXES.some((prefix) => spec === prefix || spec.startsWith(`${prefix}/`)), SCAN_SKIP_DIRS, isResolvable2 = (specifier) => {
18829
+ var REQUIRED_ANGULAR_SPECIFIERS_BASE, requiredAngularSpecifiers = (jitMode) => jitMode ? [...REQUIRED_ANGULAR_SPECIFIERS_BASE, "@angular/compiler"] : REQUIRED_ANGULAR_SPECIFIERS_BASE, SERVER_ONLY_ANGULAR_SPECIFIERS, BUILD_ONLY_ANGULAR_SPECIFIER_PREFIXES, isBuildOnlyAngularSpecifier = (spec) => BUILD_ONLY_ANGULAR_SPECIFIER_PREFIXES.some((prefix) => spec === prefix || spec.startsWith(`${prefix}/`)), SCAN_SKIP_DIRS, isResolvable = (specifier) => {
18842
18830
  try {
18843
18831
  Bun.resolveSync(specifier, process.cwd());
18844
18832
  return true;
@@ -18930,7 +18918,7 @@ var REQUIRED_ANGULAR_SPECIFIERS_BASE, requiredAngularSpecifiers = (jitMode) => j
18930
18918
  angular.add(spec);
18931
18919
  }
18932
18920
  await collectTransitiveAngularSpecs([...angular, ...transitiveRoots], angular);
18933
- return Array.from(angular).filter(isResolvable2);
18921
+ return Array.from(angular).filter(isResolvable);
18934
18922
  }, buildAngularVendor = async (buildDir, directories = [], linkerJitMode = false, depVendorSpecifiers = []) => {
18935
18923
  const vendorDir = join31(buildDir, "angular", "vendor");
18936
18924
  mkdirSync9(vendorDir, { recursive: true });
@@ -18977,7 +18965,7 @@ var REQUIRED_ANGULAR_SPECIFIERS_BASE, requiredAngularSpecifiers = (jitMode) => j
18977
18965
  const browserSpecs = await resolveAngularSpecifiers(directories, linkerJitMode);
18978
18966
  const allSpecs = new Set(browserSpecs);
18979
18967
  for (const spec of SERVER_ONLY_ANGULAR_SPECIFIERS) {
18980
- if (isResolvable2(spec))
18968
+ if (isResolvable(spec))
18981
18969
  allSpecs.add(spec);
18982
18970
  }
18983
18971
  const specifiers = Array.from(allSpecs);
@@ -19014,7 +19002,7 @@ var REQUIRED_ANGULAR_SPECIFIERS_BASE, requiredAngularSpecifiers = (jitMode) => j
19014
19002
  const browserSpecs = await resolveAngularSpecifiers(directories, linkerJitMode);
19015
19003
  const allSpecs = new Set(browserSpecs);
19016
19004
  for (const spec of SERVER_ONLY_ANGULAR_SPECIFIERS) {
19017
- if (isResolvable2(spec))
19005
+ if (isResolvable(spec))
19018
19006
  allSpecs.add(spec);
19019
19007
  }
19020
19008
  return computeAngularServerVendorPaths(buildDir, Array.from(allSpecs));
@@ -19131,15 +19119,15 @@ import { mkdirSync as mkdirSync11 } from "fs";
19131
19119
  import { join as join33 } from "path";
19132
19120
  import { rm as rm8 } from "fs/promises";
19133
19121
  var {build: bunBuild6 } = globalThis.Bun;
19134
- var svelteSpecifiers, isResolvable3 = (specifier) => {
19122
+ var svelteSpecifiers, isResolvable2 = (specifier) => {
19135
19123
  try {
19136
19124
  __require.resolve(specifier);
19137
19125
  return true;
19138
19126
  } catch {
19139
19127
  return false;
19140
19128
  }
19141
- }, resolveVendorSpecifiers2 = () => svelteSpecifiers.filter(isResolvable3), toSafeFileName4 = (specifier) => specifier.replace(/\//g, "_"), buildSvelteVendor = async (buildDir) => {
19142
- const specifiers = resolveVendorSpecifiers2();
19129
+ }, resolveVendorSpecifiers = () => svelteSpecifiers.filter(isResolvable2), toSafeFileName4 = (specifier) => specifier.replace(/\//g, "_"), buildSvelteVendor = async (buildDir) => {
19130
+ const specifiers = resolveVendorSpecifiers();
19143
19131
  if (specifiers.length === 0)
19144
19132
  return;
19145
19133
  const vendorDir = join33(buildDir, "svelte", "vendor");
@@ -19169,7 +19157,7 @@ var svelteSpecifiers, isResolvable3 = (specifier) => {
19169
19157
  }
19170
19158
  }, computeSvelteVendorPaths = () => {
19171
19159
  const paths = {};
19172
- for (const specifier of resolveVendorSpecifiers2()) {
19160
+ for (const specifier of resolveVendorSpecifiers()) {
19173
19161
  paths[specifier] = `/svelte/vendor/${toSafeFileName4(specifier)}.js`;
19174
19162
  }
19175
19163
  return paths;
@@ -26480,7 +26468,7 @@ var {build: bunBuild9, Glob: Glob10 } = globalThis.Bun;
26480
26468
  var toSafeFileName6 = (specifier) => {
26481
26469
  const prefix = specifier.startsWith("@") ? "_" : "";
26482
26470
  return prefix + specifier.replace(/\//g, "_").replace(/@/g, "").replace(/-/g, "_");
26483
- }, isResolvable4 = (specifier) => {
26471
+ }, isResolvable3 = (specifier) => {
26484
26472
  try {
26485
26473
  Bun.resolveSync(specifier, process.cwd());
26486
26474
  return true;
@@ -26524,8 +26512,8 @@ var toSafeFileName6 = (specifier) => {
26524
26512
  const transpiler6 = new Bun.Transpiler({ loader: "tsx" });
26525
26513
  await Promise.all(directories.map((dir) => collectDirSpecifiers(dir, transpiler6, dep, framework)));
26526
26514
  return {
26527
- dep: Array.from(dep).filter(isResolvable4),
26528
- framework: Array.from(framework).filter(isResolvable4)
26515
+ dep: Array.from(dep).filter(isResolvable3),
26516
+ framework: Array.from(framework).filter(isResolvable3)
26529
26517
  };
26530
26518
  }, collectTransitiveImports = async (specs, alreadyVendored, alreadyScanned) => {
26531
26519
  const { readFileSync: readFileSync28 } = await import("fs");
@@ -26563,7 +26551,7 @@ var toSafeFileName6 = (specifier) => {
26563
26551
  continue;
26564
26552
  if (alreadyVendored.has(child))
26565
26553
  continue;
26566
- if (!isResolvable4(child))
26554
+ if (!isResolvable3(child))
26567
26555
  continue;
26568
26556
  newSpecs.add(child);
26569
26557
  }
@@ -26702,7 +26690,6 @@ var init_buildDepVendor = __esm(() => {
26702
26690
  "react-dom/server",
26703
26691
  "react/jsx-runtime",
26704
26692
  "react/jsx-dev-runtime",
26705
- "react-refresh/runtime",
26706
26693
  "svelte",
26707
26694
  "svelte/internal",
26708
26695
  "svelte/internal/flags/async",
@@ -27160,5 +27147,5 @@ export {
27160
27147
  build
27161
27148
  };
27162
27149
 
27163
- //# debugId=4CD3ADB0CFF074B464756E2164756E21
27150
+ //# debugId=5236A0A9A2A0CCA764756E2164756E21
27164
27151
  //# sourceMappingURL=build.js.map