@absolutejs/absolute 0.19.0-beta.844 → 0.19.0-beta.845
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-
|
|
4
|
+
// .angular-partial-tmp-hqZBPm/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-
|
|
4
|
+
// .angular-partial-tmp-hqZBPm/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-
|
|
51
|
+
// .angular-partial-tmp-hqZBPm/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
|
@@ -18878,18 +18878,51 @@ var toSafeFileName6 = (specifier) => {
|
|
|
18878
18878
|
}));
|
|
18879
18879
|
const isPrefixOrEqual = (candidate, current) => current === candidate || current.startsWith(`${candidate}/`);
|
|
18880
18880
|
const otherSpecsFor = (current) => specifiers.filter((spec) => !isPrefixOrEqual(spec, current));
|
|
18881
|
-
const
|
|
18882
|
-
|
|
18883
|
-
|
|
18884
|
-
|
|
18885
|
-
|
|
18886
|
-
|
|
18887
|
-
|
|
18888
|
-
|
|
18889
|
-
|
|
18890
|
-
|
|
18891
|
-
|
|
18892
|
-
|
|
18881
|
+
const REQUIRE_CALL_RE = /__require\(\s*["']([^"']+)["']\s*\)/g;
|
|
18882
|
+
const MAX_INLINE_PASSES = 4;
|
|
18883
|
+
const buildEntryWithCjsRequireResolution = async (entryPath, specifier) => {
|
|
18884
|
+
const baseExternals = [
|
|
18885
|
+
...FRAMEWORK_EXTERNALS,
|
|
18886
|
+
...otherSpecsFor(specifier)
|
|
18887
|
+
];
|
|
18888
|
+
const externalsSet = new Set(baseExternals);
|
|
18889
|
+
let lastResult = null;
|
|
18890
|
+
for (let pass = 0;pass < MAX_INLINE_PASSES; pass++) {
|
|
18891
|
+
lastResult = await bunBuild9({
|
|
18892
|
+
entrypoints: [entryPath],
|
|
18893
|
+
external: [...externalsSet],
|
|
18894
|
+
format: "esm",
|
|
18895
|
+
minify: false,
|
|
18896
|
+
naming: "[name].[ext]",
|
|
18897
|
+
outdir: vendorDir,
|
|
18898
|
+
plugins: [createStripPureAnnotationsPlugin()],
|
|
18899
|
+
splitting: false,
|
|
18900
|
+
target: "browser",
|
|
18901
|
+
throw: false
|
|
18902
|
+
});
|
|
18903
|
+
if (!lastResult.success)
|
|
18904
|
+
return lastResult;
|
|
18905
|
+
const output = lastResult.outputs[0];
|
|
18906
|
+
if (!output)
|
|
18907
|
+
return lastResult;
|
|
18908
|
+
const text = await output.text();
|
|
18909
|
+
REQUIRE_CALL_RE.lastIndex = 0;
|
|
18910
|
+
const requiredSpecs = new Set;
|
|
18911
|
+
let match;
|
|
18912
|
+
while ((match = REQUIRE_CALL_RE.exec(text)) !== null) {
|
|
18913
|
+
const requiredSpec = match[1];
|
|
18914
|
+
if (requiredSpec && externalsSet.has(requiredSpec)) {
|
|
18915
|
+
requiredSpecs.add(requiredSpec);
|
|
18916
|
+
}
|
|
18917
|
+
}
|
|
18918
|
+
if (requiredSpecs.size === 0)
|
|
18919
|
+
return lastResult;
|
|
18920
|
+
for (const spec of requiredSpecs)
|
|
18921
|
+
externalsSet.delete(spec);
|
|
18922
|
+
}
|
|
18923
|
+
return lastResult;
|
|
18924
|
+
};
|
|
18925
|
+
const results = await Promise.all(entries.map(({ entryPath, specifier }) => buildEntryWithCjsRequireResolution(entryPath, specifier)));
|
|
18893
18926
|
const aggregated = {
|
|
18894
18927
|
success: results.every((result) => result.success),
|
|
18895
18928
|
logs: results.flatMap((result) => result.logs),
|
|
@@ -19348,5 +19381,5 @@ export {
|
|
|
19348
19381
|
build
|
|
19349
19382
|
};
|
|
19350
19383
|
|
|
19351
|
-
//# debugId=
|
|
19384
|
+
//# debugId=6C326DB07EC8C78F64756E2164756E21
|
|
19352
19385
|
//# sourceMappingURL=build.js.map
|