@absolutejs/absolute 0.19.0-beta.1079 → 0.19.0-beta.1080

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-CjyDRP/src/core/streamingSlotRegistrar.ts
4
+ // .angular-partial-tmp-MuWFQ6/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-CjyDRP/src/core/streamingSlotRegistrar.ts
4
+ // .angular-partial-tmp-MuWFQ6/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-CjyDRP/src/core/streamingSlotRegistry.ts
51
+ // .angular-partial-tmp-MuWFQ6/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
@@ -27248,6 +27248,11 @@ var {build: bunBuild9, Glob: Glob10 } = globalThis.Bun;
27248
27248
  var toSafeFileName6 = (specifier) => {
27249
27249
  const prefix = specifier.startsWith("@") ? "_" : "";
27250
27250
  return prefix + specifier.replace(/\//g, "_").replace(/@/g, "").replace(/-/g, "_");
27251
+ }, packageRootOf = (specifier) => {
27252
+ const parts = specifier.split("/");
27253
+ if (specifier.startsWith("@"))
27254
+ return parts.slice(0, 2).join("/") || specifier;
27255
+ return parts[0] ?? specifier;
27251
27256
  }, isResolvable3 = (specifier) => {
27252
27257
  try {
27253
27258
  Bun.resolveSync(specifier, process.cwd());
@@ -27436,7 +27441,37 @@ var toSafeFileName6 = (specifier) => {
27436
27441
  }
27437
27442
  return lastResult;
27438
27443
  };
27439
- const results = await Promise.all(entries.map(({ entryPath, specifier }) => buildEntryWithCjsRequireResolution(entryPath, specifier)));
27444
+ const groups = new Map;
27445
+ for (const entry of entries) {
27446
+ const root = packageRootOf(entry.specifier);
27447
+ const list = groups.get(root) ?? [];
27448
+ list.push(entry);
27449
+ groups.set(root, list);
27450
+ }
27451
+ const buildPackageGroup = (groupEntries) => {
27452
+ const groupSpecs = new Set(groupEntries.map((entry) => entry.specifier));
27453
+ return bunBuild9({
27454
+ entrypoints: groupEntries.map((entry) => entry.entryPath),
27455
+ external: [
27456
+ ...FRAMEWORK_EXTERNALS,
27457
+ ...specifiers.filter((spec) => !groupSpecs.has(spec))
27458
+ ],
27459
+ format: "esm",
27460
+ minify: false,
27461
+ naming: { chunk: "[name]-[hash].[ext]", entry: "[name].[ext]" },
27462
+ outdir: vendorDir,
27463
+ plugins: [createStripPureAnnotationsPlugin()],
27464
+ splitting: true,
27465
+ target: "browser",
27466
+ throw: false
27467
+ });
27468
+ };
27469
+ const results = await Promise.all(Array.from(groups.values()).map((groupEntries) => {
27470
+ const only = groupEntries[0];
27471
+ if (groupEntries.length === 1 && only)
27472
+ return buildEntryWithCjsRequireResolution(only.entryPath, only.specifier);
27473
+ return buildPackageGroup(groupEntries);
27474
+ }));
27440
27475
  const aggregated = {
27441
27476
  success: results.every((result) => result.success),
27442
27477
  logs: results.flatMap((result) => result.logs),
@@ -27960,5 +27995,5 @@ export {
27960
27995
  build
27961
27996
  };
27962
27997
 
27963
- //# debugId=36C247738D172D4464756E2164756E21
27998
+ //# debugId=8D74425395F2792364756E2164756E21
27964
27999
  //# sourceMappingURL=build.js.map