@absolutejs/absolute 0.19.0-beta.1084 → 0.19.0-beta.1085
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/angular/components/core/streamingSlotRegistrar.js +1 -1
- package/dist/angular/components/core/streamingSlotRegistry.js +2 -2
- package/dist/build.js +63 -12
- package/dist/build.js.map +4 -4
- package/dist/index.js +68 -17
- package/dist/index.js.map +4 -4
- package/dist/src/build/chainInlineSourcemaps.d.ts +1 -0
- package/dist/src/core/build.d.ts +5 -0
- package/dist/src/utils/loadConfig.d.ts +1 -0
- package/dist/types/build.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
var __require = import.meta.require;
|
|
3
3
|
|
|
4
|
-
// .angular-partial-tmp-
|
|
4
|
+
// .angular-partial-tmp-cupHjw/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-cupHjw/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-cupHjw/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
|
@@ -13320,6 +13320,7 @@ __export(exports_chainInlineSourcemaps, {
|
|
|
13320
13320
|
remapGeneratedLines: () => remapGeneratedLines,
|
|
13321
13321
|
inlineLineMapComment: () => inlineLineMapComment,
|
|
13322
13322
|
chainSourcemap: () => chainSourcemap,
|
|
13323
|
+
chainExternalSourcemap: () => chainExternalSourcemap,
|
|
13323
13324
|
chainBundleInlineSourcemap: () => chainBundleInlineSourcemap,
|
|
13324
13325
|
buildLineRemap: () => buildLineRemap
|
|
13325
13326
|
});
|
|
@@ -13631,6 +13632,25 @@ var BASE64_CHARS = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz01234567
|
|
|
13631
13632
|
const inline = `
|
|
13632
13633
|
//# sourceMappingURL=data:application/json;base64,` + Buffer.from(JSON.stringify(chained)).toString("base64");
|
|
13633
13634
|
writeFileSync7(bundleFilePath, stripped + inline);
|
|
13635
|
+
}, chainExternalSourcemap = (mapFilePath) => {
|
|
13636
|
+
let outerMap;
|
|
13637
|
+
try {
|
|
13638
|
+
outerMap = JSON.parse(readFileSync17(mapFilePath, "utf-8"));
|
|
13639
|
+
} catch {
|
|
13640
|
+
return;
|
|
13641
|
+
}
|
|
13642
|
+
if (!Array.isArray(outerMap.sources))
|
|
13643
|
+
return;
|
|
13644
|
+
const chained = chainSourcemap(outerMap, (src) => {
|
|
13645
|
+
const idx = outerMap.sources.indexOf(src);
|
|
13646
|
+
if (idx < 0)
|
|
13647
|
+
return null;
|
|
13648
|
+
const content = outerMap.sourcesContent?.[idx];
|
|
13649
|
+
if (!content)
|
|
13650
|
+
return null;
|
|
13651
|
+
return extractInlineMap(content);
|
|
13652
|
+
});
|
|
13653
|
+
writeFileSync7(mapFilePath, JSON.stringify(chained));
|
|
13634
13654
|
};
|
|
13635
13655
|
var init_chainInlineSourcemaps = __esm(() => {
|
|
13636
13656
|
BASE64_TO_INT = new Int8Array(128).fill(-1);
|
|
@@ -19959,7 +19979,9 @@ import {
|
|
|
19959
19979
|
cpSync,
|
|
19960
19980
|
existsSync as existsSync27,
|
|
19961
19981
|
mkdirSync as mkdirSync12,
|
|
19982
|
+
readdirSync as readdirSync5,
|
|
19962
19983
|
readFileSync as readFileSync21,
|
|
19984
|
+
renameSync,
|
|
19963
19985
|
rmSync as rmSync2,
|
|
19964
19986
|
statSync as statSync3,
|
|
19965
19987
|
writeFileSync as writeFileSync8
|
|
@@ -20297,6 +20319,14 @@ ${content.slice(firstUseIdx)}`;
|
|
|
20297
20319
|
...config.default ?? {},
|
|
20298
20320
|
...config[pass] ?? {}
|
|
20299
20321
|
}, locked);
|
|
20322
|
+
}, resolveClientSourcemap = (sourcemaps, isDev2) => {
|
|
20323
|
+
if (isDev2)
|
|
20324
|
+
return sourcemaps === false ? "none" : "inline";
|
|
20325
|
+
if (sourcemaps === "external" || sourcemaps === true)
|
|
20326
|
+
return "external";
|
|
20327
|
+
if (sourcemaps === "inline")
|
|
20328
|
+
return "inline";
|
|
20329
|
+
return "none";
|
|
20300
20330
|
}, dedupe = (values) => [...new Set(values)], mergeBunBuildConfig = (base, override) => {
|
|
20301
20331
|
const sanitized = sanitizeBunBuildOverride(override);
|
|
20302
20332
|
const merged = {
|
|
@@ -20335,7 +20365,8 @@ ${content.slice(firstUseIdx)}`;
|
|
|
20335
20365
|
options,
|
|
20336
20366
|
incrementalFiles,
|
|
20337
20367
|
mode,
|
|
20338
|
-
sitemap
|
|
20368
|
+
sitemap,
|
|
20369
|
+
sourcemaps
|
|
20339
20370
|
}) => {
|
|
20340
20371
|
const buildStart = performance.now();
|
|
20341
20372
|
const projectRoot = cwd();
|
|
@@ -21138,6 +21169,7 @@ ${content.slice(firstUseIdx)}`;
|
|
|
21138
21169
|
...islandRegistryPlugins
|
|
21139
21170
|
],
|
|
21140
21171
|
root: clientRoot,
|
|
21172
|
+
sourcemap: resolveClientSourcemap(sourcemaps, isDev),
|
|
21141
21173
|
splitting: true,
|
|
21142
21174
|
target: "browser",
|
|
21143
21175
|
throw: false
|
|
@@ -21212,6 +21244,7 @@ ${content.slice(firstUseIdx)}`;
|
|
|
21212
21244
|
...htmlScriptPlugin ? [htmlScriptPlugin] : []
|
|
21213
21245
|
],
|
|
21214
21246
|
root: clientRoot,
|
|
21247
|
+
sourcemap: resolveClientSourcemap(sourcemaps, isDev),
|
|
21215
21248
|
splitting: !isDev,
|
|
21216
21249
|
target: "browser",
|
|
21217
21250
|
throw: false,
|
|
@@ -21239,6 +21272,7 @@ ${content.slice(firstUseIdx)}`;
|
|
|
21239
21272
|
...angularDir ? [createAngularLinkerPlugin(hmr)] : []
|
|
21240
21273
|
],
|
|
21241
21274
|
root: islandEntryResult.generatedRoot,
|
|
21275
|
+
sourcemap: resolveClientSourcemap(sourcemaps, isDev),
|
|
21242
21276
|
splitting: !isDev,
|
|
21243
21277
|
target: "browser",
|
|
21244
21278
|
throw: false,
|
|
@@ -21270,6 +21304,23 @@ ${content.slice(firstUseIdx)}`;
|
|
|
21270
21304
|
chainBundleInlineSourcemap2(out.path);
|
|
21271
21305
|
}
|
|
21272
21306
|
}
|
|
21307
|
+
if (!isDev && resolveClientSourcemap(sourcemaps, isDev) === "external") {
|
|
21308
|
+
const { chainExternalSourcemap: chainExternalSourcemap2 } = await Promise.resolve().then(() => (init_chainInlineSourcemaps(), exports_chainInlineSourcemaps));
|
|
21309
|
+
const sourcemapDir = join36(projectRoot, "sourcemaps");
|
|
21310
|
+
mkdirSync12(sourcemapDir, { recursive: true });
|
|
21311
|
+
const mapFiles = readdirSync5(buildPath, { recursive: true }).filter((entry) => entry.endsWith(".js.map") && !entry.includes("node_modules")).map((entry) => join36(buildPath, entry));
|
|
21312
|
+
for (const mapPath of mapFiles) {
|
|
21313
|
+
chainExternalSourcemap2(mapPath);
|
|
21314
|
+
renameSync(mapPath, join36(sourcemapDir, basename11(mapPath)));
|
|
21315
|
+
const jsPath = mapPath.slice(0, -4);
|
|
21316
|
+
try {
|
|
21317
|
+
const js = readFileSync21(jsPath, "utf-8").replace(/\n?\/\/# sourceMappingURL=[^\n]*\s*$/, `
|
|
21318
|
+
`);
|
|
21319
|
+
writeFileSync8(jsPath, js);
|
|
21320
|
+
} catch {}
|
|
21321
|
+
}
|
|
21322
|
+
console.info(`[absolute] sourcemaps: chained + privatized ${mapFiles.length} client maps \u2192 ${relative14(projectRoot, sourcemapDir)}/`);
|
|
21323
|
+
}
|
|
21273
21324
|
if (serverResult && !serverResult.success && serverLogs.length > 0) {
|
|
21274
21325
|
extractBuildError(serverLogs, "server", "Server", frameworkNames, isIncremental, throwOnError);
|
|
21275
21326
|
}
|
|
@@ -22292,7 +22343,7 @@ var init_clientManager = __esm(() => {
|
|
|
22292
22343
|
});
|
|
22293
22344
|
|
|
22294
22345
|
// src/dev/pathUtils.ts
|
|
22295
|
-
import { existsSync as existsSync30, readdirSync as
|
|
22346
|
+
import { existsSync as existsSync30, readdirSync as readdirSync6, readFileSync as readFileSync23 } from "fs";
|
|
22296
22347
|
import { dirname as dirname19, resolve as resolve28 } from "path";
|
|
22297
22348
|
var STYLE_EXTENSION_PATTERN2, detectFramework = (filePath, resolved) => {
|
|
22298
22349
|
if (shouldIgnorePath(filePath, resolved)) {
|
|
@@ -22374,7 +22425,7 @@ var STYLE_EXTENSION_PATTERN2, detectFramework = (filePath, resolved) => {
|
|
|
22374
22425
|
const walk = (dir) => {
|
|
22375
22426
|
let entries;
|
|
22376
22427
|
try {
|
|
22377
|
-
entries =
|
|
22428
|
+
entries = readdirSync6(dir, { withFileTypes: true });
|
|
22378
22429
|
} catch {
|
|
22379
22430
|
return;
|
|
22380
22431
|
}
|
|
@@ -22470,8 +22521,8 @@ var STYLE_EXTENSION_PATTERN2, detectFramework = (filePath, resolved) => {
|
|
|
22470
22521
|
roots.push(abs);
|
|
22471
22522
|
}
|
|
22472
22523
|
try {
|
|
22473
|
-
const { readdirSync:
|
|
22474
|
-
const entries =
|
|
22524
|
+
const { readdirSync: readdirSync7 } = __require("fs");
|
|
22525
|
+
const entries = readdirSync7(cwd2, { withFileTypes: true });
|
|
22475
22526
|
for (const entry of entries) {
|
|
22476
22527
|
if (!entry.isDirectory())
|
|
22477
22528
|
continue;
|
|
@@ -22551,7 +22602,7 @@ var init_pathUtils = __esm(() => {
|
|
|
22551
22602
|
|
|
22552
22603
|
// src/dev/fileWatcher.ts
|
|
22553
22604
|
import { watch } from "fs";
|
|
22554
|
-
import { existsSync as existsSync31, readdirSync as
|
|
22605
|
+
import { existsSync as existsSync31, readdirSync as readdirSync7, statSync as statSync4 } from "fs";
|
|
22555
22606
|
import { dirname as dirname20, join as join38, resolve as resolve29 } from "path";
|
|
22556
22607
|
var safeRemoveFromGraph = (graph, fullPath) => {
|
|
22557
22608
|
try {
|
|
@@ -22577,7 +22628,7 @@ var safeRemoveFromGraph = (graph, fullPath) => {
|
|
|
22577
22628
|
const atomicRecoveryScan = (eventDir) => {
|
|
22578
22629
|
let entries;
|
|
22579
22630
|
try {
|
|
22580
|
-
entries =
|
|
22631
|
+
entries = readdirSync7(eventDir);
|
|
22581
22632
|
} catch {
|
|
22582
22633
|
return;
|
|
22583
22634
|
}
|
|
@@ -23058,7 +23109,7 @@ __export(exports_resolveOwningComponents, {
|
|
|
23058
23109
|
resolveDescendantsOfParent: () => resolveDescendantsOfParent,
|
|
23059
23110
|
invalidateResourceIndex: () => invalidateResourceIndex
|
|
23060
23111
|
});
|
|
23061
|
-
import { readdirSync as
|
|
23112
|
+
import { readdirSync as readdirSync8, readFileSync as readFileSync26, statSync as statSync5 } from "fs";
|
|
23062
23113
|
import { dirname as dirname22, extname as extname9, join as join39, resolve as resolve34 } from "path";
|
|
23063
23114
|
import ts16 from "typescript";
|
|
23064
23115
|
var ENTITY_DECORATORS, isAngularSourceFile = (file4) => file4.endsWith(".ts") || file4.endsWith(".tsx"), walkAngularSourceFiles = (root) => {
|
|
@@ -23066,7 +23117,7 @@ var ENTITY_DECORATORS, isAngularSourceFile = (file4) => file4.endsWith(".ts") ||
|
|
|
23066
23117
|
const visit = (dir) => {
|
|
23067
23118
|
let entries;
|
|
23068
23119
|
try {
|
|
23069
|
-
entries =
|
|
23120
|
+
entries = readdirSync8(dir, { withFileTypes: true });
|
|
23070
23121
|
} catch {
|
|
23071
23122
|
return;
|
|
23072
23123
|
}
|
|
@@ -25807,9 +25858,9 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, runSequent
|
|
|
25807
25858
|
const editedProvidersChain = providersImport && angularFiles.some((file4) => resolve40(file4) === resolve40(providersImport.absolutePath) || resolve40(file4).startsWith(`${resolve40(angularDir)}/`));
|
|
25808
25859
|
const pageEntries = editedProvidersChain && initialPageEntries.length === 0 ? (() => {
|
|
25809
25860
|
const allPages = [];
|
|
25810
|
-
const { readdirSync:
|
|
25861
|
+
const { readdirSync: readdirSync9 } = __require("fs");
|
|
25811
25862
|
const walk = (dir) => {
|
|
25812
|
-
for (const entry of
|
|
25863
|
+
for (const entry of readdirSync9(dir, {
|
|
25813
25864
|
withFileTypes: true
|
|
25814
25865
|
})) {
|
|
25815
25866
|
const full = resolve40(dir, entry.name);
|
|
@@ -27995,5 +28046,5 @@ export {
|
|
|
27995
28046
|
build
|
|
27996
28047
|
};
|
|
27997
28048
|
|
|
27998
|
-
//# debugId=
|
|
28049
|
+
//# debugId=DC64642A5ABC591D64756E2164756E21
|
|
27999
28050
|
//# sourceMappingURL=build.js.map
|