@absolutejs/absolute 0.19.0-beta.990 → 0.19.0-beta.992
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-1mjpOv/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-1mjpOv/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-1mjpOv/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
|
@@ -13206,14 +13206,6 @@ if (typeof __VUE_HMR_RUNTIME__ !== 'undefined') {
|
|
|
13206
13206
|
const serverCode = assembleModule(generateRenderFunction(true), "ssrRender", false) + islandMetadataExports;
|
|
13207
13207
|
const clientOutputPath = join27(outputDirs.client, `${relativeWithoutExtension}.js`);
|
|
13208
13208
|
const serverOutputPath = join27(outputDirs.server, `${relativeWithoutExtension}.js`);
|
|
13209
|
-
const relDir = dirname13(relativeFilePath);
|
|
13210
|
-
const relDepth = relDir === "." ? 0 : relDir.split("/").length;
|
|
13211
|
-
const adjustImports = (code) => code.replace(/(from\s+['"])(\.\.\/(?:\.\.\/)*)/g, (_2, prefix, dots) => {
|
|
13212
|
-
const upCount = dots.split("/").length - 1;
|
|
13213
|
-
if (upCount <= relDepth)
|
|
13214
|
-
return `${prefix}${dots}`;
|
|
13215
|
-
return `${prefix}../../${dots}`;
|
|
13216
|
-
});
|
|
13217
13209
|
const rewritePackageImports = (code, outputPath, mode) => {
|
|
13218
13210
|
let result2 = code;
|
|
13219
13211
|
for (const [bareImport, paths] of packageImportRewrites) {
|
|
@@ -13227,8 +13219,8 @@ if (typeof __VUE_HMR_RUNTIME__ !== 'undefined') {
|
|
|
13227
13219
|
};
|
|
13228
13220
|
await mkdir5(dirname13(clientOutputPath), { recursive: true });
|
|
13229
13221
|
await mkdir5(dirname13(serverOutputPath), { recursive: true });
|
|
13230
|
-
const clientFinal = rewritePackageImports(
|
|
13231
|
-
const serverFinal = rewritePackageImports(
|
|
13222
|
+
const clientFinal = rewritePackageImports(clientCode, clientOutputPath, "client");
|
|
13223
|
+
const serverFinal = rewritePackageImports(serverCode, serverOutputPath, "server");
|
|
13232
13224
|
const inlineSourceMapFor = (finalContent) => {
|
|
13233
13225
|
if (!compiledScript.map || !hasScript)
|
|
13234
13226
|
return "";
|
|
@@ -13437,6 +13429,26 @@ if (typeof __VUE_HMR_RUNTIME__ !== 'undefined') {
|
|
|
13437
13429
|
serverPath: result.serverPath
|
|
13438
13430
|
};
|
|
13439
13431
|
}));
|
|
13432
|
+
const queue = Array.from(allTsHelperPaths);
|
|
13433
|
+
while (queue.length > 0) {
|
|
13434
|
+
const tsPath = queue.shift();
|
|
13435
|
+
if (!tsPath)
|
|
13436
|
+
continue;
|
|
13437
|
+
const sourceCode = await file2(tsPath).text();
|
|
13438
|
+
const helperDir = dirname13(tsPath);
|
|
13439
|
+
for (const dep of extractImports(sourceCode)) {
|
|
13440
|
+
if (!dep.startsWith(".") || isStylePath(dep) || dep.endsWith(".vue")) {
|
|
13441
|
+
continue;
|
|
13442
|
+
}
|
|
13443
|
+
const resolved = resolveHelperTsPath(helperDir, dep);
|
|
13444
|
+
if (!existsSync21(resolved))
|
|
13445
|
+
continue;
|
|
13446
|
+
if (allTsHelperPaths.has(resolved))
|
|
13447
|
+
continue;
|
|
13448
|
+
allTsHelperPaths.add(resolved);
|
|
13449
|
+
queue.push(resolved);
|
|
13450
|
+
}
|
|
13451
|
+
}
|
|
13440
13452
|
await Promise.all(Array.from(allTsHelperPaths).map(async (tsPath) => {
|
|
13441
13453
|
const sourceCode = await file2(tsPath).text();
|
|
13442
13454
|
const transpiledCode = transpiler4.transformSync(sourceCode);
|
|
@@ -27008,5 +27020,5 @@ export {
|
|
|
27008
27020
|
build
|
|
27009
27021
|
};
|
|
27010
27022
|
|
|
27011
|
-
//# debugId=
|
|
27023
|
+
//# debugId=4DAF6F005274115164756E2164756E21
|
|
27012
27024
|
//# sourceMappingURL=build.js.map
|