@absolutejs/absolute 0.19.0-beta.1084 → 0.19.0-beta.1086
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 +66 -14
- package/dist/build.js.map +5 -5
- package/dist/index.js +71 -19
- package/dist/index.js.map +5 -5
- 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
package/dist/index.js
CHANGED
|
@@ -23414,6 +23414,7 @@ __export(exports_chainInlineSourcemaps, {
|
|
|
23414
23414
|
remapGeneratedLines: () => remapGeneratedLines,
|
|
23415
23415
|
inlineLineMapComment: () => inlineLineMapComment,
|
|
23416
23416
|
chainSourcemap: () => chainSourcemap,
|
|
23417
|
+
chainExternalSourcemap: () => chainExternalSourcemap,
|
|
23417
23418
|
chainBundleInlineSourcemap: () => chainBundleInlineSourcemap,
|
|
23418
23419
|
buildLineRemap: () => buildLineRemap
|
|
23419
23420
|
});
|
|
@@ -23725,6 +23726,25 @@ var BASE64_CHARS = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz01234567
|
|
|
23725
23726
|
const inline = `
|
|
23726
23727
|
//# sourceMappingURL=data:application/json;base64,` + Buffer.from(JSON.stringify(chained)).toString("base64");
|
|
23727
23728
|
writeFileSync8(bundleFilePath, stripped + inline);
|
|
23729
|
+
}, chainExternalSourcemap = (mapFilePath) => {
|
|
23730
|
+
let outerMap;
|
|
23731
|
+
try {
|
|
23732
|
+
outerMap = JSON.parse(readFileSync21(mapFilePath, "utf-8"));
|
|
23733
|
+
} catch {
|
|
23734
|
+
return;
|
|
23735
|
+
}
|
|
23736
|
+
if (!Array.isArray(outerMap.sources))
|
|
23737
|
+
return;
|
|
23738
|
+
const chained = chainSourcemap(outerMap, (src) => {
|
|
23739
|
+
const idx = outerMap.sources.indexOf(src);
|
|
23740
|
+
if (idx < 0)
|
|
23741
|
+
return null;
|
|
23742
|
+
const content = outerMap.sourcesContent?.[idx];
|
|
23743
|
+
if (!content)
|
|
23744
|
+
return null;
|
|
23745
|
+
return extractInlineMap(content);
|
|
23746
|
+
});
|
|
23747
|
+
writeFileSync8(mapFilePath, JSON.stringify(chained));
|
|
23728
23748
|
};
|
|
23729
23749
|
var init_chainInlineSourcemaps = __esm(() => {
|
|
23730
23750
|
BASE64_TO_INT = new Int8Array(128).fill(-1);
|
|
@@ -24310,13 +24330,14 @@ if (typeof __VUE_HMR_RUNTIME__ !== 'undefined') {
|
|
|
24310
24330
|
await Promise.all(Array.from(allTsHelperPaths).map(async (tsPath) => {
|
|
24311
24331
|
const sourceCode = await file3(tsPath).text();
|
|
24312
24332
|
const transpiledCode = transpiler4.transformSync(sourceCode);
|
|
24333
|
+
const withMap = transpiledCode + inlineLineMapComment(tsPath, sourceCode, transpiledCode);
|
|
24313
24334
|
const relativeJsPath = relative11(vueRootDir, tsPath).replace(/\.ts$/, ".js");
|
|
24314
24335
|
const outClientPath = join33(clientOutputDir, relativeJsPath);
|
|
24315
24336
|
const outServerPath = join33(serverOutputDir, relativeJsPath);
|
|
24316
24337
|
await mkdir6(dirname16(outClientPath), { recursive: true });
|
|
24317
24338
|
await mkdir6(dirname16(outServerPath), { recursive: true });
|
|
24318
|
-
await write3(outClientPath,
|
|
24319
|
-
await write3(outServerPath,
|
|
24339
|
+
await write3(outClientPath, withMap);
|
|
24340
|
+
await write3(outServerPath, withMap);
|
|
24320
24341
|
}));
|
|
24321
24342
|
const isString = (value) => value !== null;
|
|
24322
24343
|
const vueSpaRoutesBySource = new Map;
|
|
@@ -30053,7 +30074,9 @@ import {
|
|
|
30053
30074
|
cpSync,
|
|
30054
30075
|
existsSync as existsSync30,
|
|
30055
30076
|
mkdirSync as mkdirSync12,
|
|
30077
|
+
readdirSync as readdirSync5,
|
|
30056
30078
|
readFileSync as readFileSync25,
|
|
30079
|
+
renameSync,
|
|
30057
30080
|
rmSync as rmSync2,
|
|
30058
30081
|
statSync as statSync3,
|
|
30059
30082
|
writeFileSync as writeFileSync9
|
|
@@ -30391,6 +30414,14 @@ ${content.slice(firstUseIdx)}`;
|
|
|
30391
30414
|
...config2.default ?? {},
|
|
30392
30415
|
...config2[pass] ?? {}
|
|
30393
30416
|
}, locked);
|
|
30417
|
+
}, resolveClientSourcemap = (sourcemaps, isDev3) => {
|
|
30418
|
+
if (isDev3)
|
|
30419
|
+
return sourcemaps === false ? "none" : "inline";
|
|
30420
|
+
if (sourcemaps === "external" || sourcemaps === true)
|
|
30421
|
+
return "external";
|
|
30422
|
+
if (sourcemaps === "inline")
|
|
30423
|
+
return "inline";
|
|
30424
|
+
return "none";
|
|
30394
30425
|
}, dedupe = (values) => [...new Set(values)], mergeBunBuildConfig = (base, override) => {
|
|
30395
30426
|
const sanitized = sanitizeBunBuildOverride(override);
|
|
30396
30427
|
const merged = {
|
|
@@ -30429,7 +30460,8 @@ ${content.slice(firstUseIdx)}`;
|
|
|
30429
30460
|
options,
|
|
30430
30461
|
incrementalFiles,
|
|
30431
30462
|
mode,
|
|
30432
|
-
sitemap: sitemap2
|
|
30463
|
+
sitemap: sitemap2,
|
|
30464
|
+
sourcemaps
|
|
30433
30465
|
}) => {
|
|
30434
30466
|
const buildStart = performance.now();
|
|
30435
30467
|
const projectRoot = cwd();
|
|
@@ -31232,6 +31264,7 @@ ${content.slice(firstUseIdx)}`;
|
|
|
31232
31264
|
...islandRegistryPlugins
|
|
31233
31265
|
],
|
|
31234
31266
|
root: clientRoot,
|
|
31267
|
+
sourcemap: resolveClientSourcemap(sourcemaps, isDev2),
|
|
31235
31268
|
splitting: true,
|
|
31236
31269
|
target: "browser",
|
|
31237
31270
|
throw: false
|
|
@@ -31306,6 +31339,7 @@ ${content.slice(firstUseIdx)}`;
|
|
|
31306
31339
|
...htmlScriptPlugin ? [htmlScriptPlugin] : []
|
|
31307
31340
|
],
|
|
31308
31341
|
root: clientRoot,
|
|
31342
|
+
sourcemap: resolveClientSourcemap(sourcemaps, isDev2),
|
|
31309
31343
|
splitting: !isDev2,
|
|
31310
31344
|
target: "browser",
|
|
31311
31345
|
throw: false,
|
|
@@ -31333,6 +31367,7 @@ ${content.slice(firstUseIdx)}`;
|
|
|
31333
31367
|
...angularDir ? [createAngularLinkerPlugin(hmr)] : []
|
|
31334
31368
|
],
|
|
31335
31369
|
root: islandEntryResult.generatedRoot,
|
|
31370
|
+
sourcemap: resolveClientSourcemap(sourcemaps, isDev2),
|
|
31336
31371
|
splitting: !isDev2,
|
|
31337
31372
|
target: "browser",
|
|
31338
31373
|
throw: false,
|
|
@@ -31364,6 +31399,23 @@ ${content.slice(firstUseIdx)}`;
|
|
|
31364
31399
|
chainBundleInlineSourcemap2(out.path);
|
|
31365
31400
|
}
|
|
31366
31401
|
}
|
|
31402
|
+
if (!isDev2 && resolveClientSourcemap(sourcemaps, isDev2) === "external") {
|
|
31403
|
+
const { chainExternalSourcemap: chainExternalSourcemap2 } = await Promise.resolve().then(() => (init_chainInlineSourcemaps(), exports_chainInlineSourcemaps));
|
|
31404
|
+
const sourcemapDir = join40(projectRoot, "sourcemaps");
|
|
31405
|
+
mkdirSync12(sourcemapDir, { recursive: true });
|
|
31406
|
+
const mapFiles = readdirSync5(buildPath, { recursive: true }).filter((entry) => entry.endsWith(".js.map") && !entry.includes("node_modules")).map((entry) => join40(buildPath, entry));
|
|
31407
|
+
for (const mapPath of mapFiles) {
|
|
31408
|
+
chainExternalSourcemap2(mapPath);
|
|
31409
|
+
renameSync(mapPath, join40(sourcemapDir, basename12(mapPath)));
|
|
31410
|
+
const jsPath = mapPath.slice(0, -4);
|
|
31411
|
+
try {
|
|
31412
|
+
const js = readFileSync25(jsPath, "utf-8").replace(/\n?\/\/# sourceMappingURL=[^\n]*\s*$/, `
|
|
31413
|
+
`);
|
|
31414
|
+
writeFileSync9(jsPath, js);
|
|
31415
|
+
} catch {}
|
|
31416
|
+
}
|
|
31417
|
+
console.info(`[absolute] sourcemaps: chained + privatized ${mapFiles.length} client maps \u2192 ${relative14(projectRoot, sourcemapDir)}/`);
|
|
31418
|
+
}
|
|
31367
31419
|
if (serverResult && !serverResult.success && serverLogs.length > 0) {
|
|
31368
31420
|
extractBuildError(serverLogs, "server", "Server", frameworkNames, isIncremental, throwOnError);
|
|
31369
31421
|
}
|
|
@@ -32386,7 +32438,7 @@ var init_clientManager = __esm(() => {
|
|
|
32386
32438
|
});
|
|
32387
32439
|
|
|
32388
32440
|
// src/dev/pathUtils.ts
|
|
32389
|
-
import { existsSync as existsSync33, readdirSync as
|
|
32441
|
+
import { existsSync as existsSync33, readdirSync as readdirSync6, readFileSync as readFileSync27 } from "fs";
|
|
32390
32442
|
import { dirname as dirname21, resolve as resolve31 } from "path";
|
|
32391
32443
|
var STYLE_EXTENSION_PATTERN2, detectFramework = (filePath, resolved) => {
|
|
32392
32444
|
if (shouldIgnorePath(filePath, resolved)) {
|
|
@@ -32468,7 +32520,7 @@ var STYLE_EXTENSION_PATTERN2, detectFramework = (filePath, resolved) => {
|
|
|
32468
32520
|
const walk = (dir) => {
|
|
32469
32521
|
let entries;
|
|
32470
32522
|
try {
|
|
32471
|
-
entries =
|
|
32523
|
+
entries = readdirSync6(dir, { withFileTypes: true });
|
|
32472
32524
|
} catch {
|
|
32473
32525
|
return;
|
|
32474
32526
|
}
|
|
@@ -32564,8 +32616,8 @@ var STYLE_EXTENSION_PATTERN2, detectFramework = (filePath, resolved) => {
|
|
|
32564
32616
|
roots.push(abs);
|
|
32565
32617
|
}
|
|
32566
32618
|
try {
|
|
32567
|
-
const { readdirSync:
|
|
32568
|
-
const entries =
|
|
32619
|
+
const { readdirSync: readdirSync7 } = __require("fs");
|
|
32620
|
+
const entries = readdirSync7(cwd2, { withFileTypes: true });
|
|
32569
32621
|
for (const entry of entries) {
|
|
32570
32622
|
if (!entry.isDirectory())
|
|
32571
32623
|
continue;
|
|
@@ -32645,7 +32697,7 @@ var init_pathUtils = __esm(() => {
|
|
|
32645
32697
|
|
|
32646
32698
|
// src/dev/fileWatcher.ts
|
|
32647
32699
|
import { watch } from "fs";
|
|
32648
|
-
import { existsSync as existsSync34, readdirSync as
|
|
32700
|
+
import { existsSync as existsSync34, readdirSync as readdirSync7, statSync as statSync4 } from "fs";
|
|
32649
32701
|
import { dirname as dirname22, join as join42, resolve as resolve32 } from "path";
|
|
32650
32702
|
var safeRemoveFromGraph = (graph, fullPath) => {
|
|
32651
32703
|
try {
|
|
@@ -32671,7 +32723,7 @@ var safeRemoveFromGraph = (graph, fullPath) => {
|
|
|
32671
32723
|
const atomicRecoveryScan = (eventDir) => {
|
|
32672
32724
|
let entries;
|
|
32673
32725
|
try {
|
|
32674
|
-
entries =
|
|
32726
|
+
entries = readdirSync7(eventDir);
|
|
32675
32727
|
} catch {
|
|
32676
32728
|
return;
|
|
32677
32729
|
}
|
|
@@ -33078,7 +33130,7 @@ __export(exports_resolveOwningComponents, {
|
|
|
33078
33130
|
resolveDescendantsOfParent: () => resolveDescendantsOfParent,
|
|
33079
33131
|
invalidateResourceIndex: () => invalidateResourceIndex
|
|
33080
33132
|
});
|
|
33081
|
-
import { readdirSync as
|
|
33133
|
+
import { readdirSync as readdirSync8, readFileSync as readFileSync29, statSync as statSync5 } from "fs";
|
|
33082
33134
|
import { dirname as dirname23, extname as extname9, join as join43, resolve as resolve36 } from "path";
|
|
33083
33135
|
import ts16 from "typescript";
|
|
33084
33136
|
var ENTITY_DECORATORS, isAngularSourceFile = (file5) => file5.endsWith(".ts") || file5.endsWith(".tsx"), walkAngularSourceFiles = (root) => {
|
|
@@ -33086,7 +33138,7 @@ var ENTITY_DECORATORS, isAngularSourceFile = (file5) => file5.endsWith(".ts") ||
|
|
|
33086
33138
|
const visit = (dir) => {
|
|
33087
33139
|
let entries;
|
|
33088
33140
|
try {
|
|
33089
|
-
entries =
|
|
33141
|
+
entries = readdirSync8(dir, { withFileTypes: true });
|
|
33090
33142
|
} catch {
|
|
33091
33143
|
return;
|
|
33092
33144
|
}
|
|
@@ -35661,9 +35713,9 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, runSequent
|
|
|
35661
35713
|
const editedProvidersChain = providersImport && angularFiles.some((file5) => resolve41(file5) === resolve41(providersImport.absolutePath) || resolve41(file5).startsWith(`${resolve41(angularDir)}/`));
|
|
35662
35714
|
const pageEntries = editedProvidersChain && initialPageEntries.length === 0 ? (() => {
|
|
35663
35715
|
const allPages = [];
|
|
35664
|
-
const { readdirSync:
|
|
35716
|
+
const { readdirSync: readdirSync9 } = __require("fs");
|
|
35665
35717
|
const walk = (dir) => {
|
|
35666
|
-
for (const entry of
|
|
35718
|
+
for (const entry of readdirSync9(dir, {
|
|
35667
35719
|
withFileTypes: true
|
|
35668
35720
|
})) {
|
|
35669
35721
|
const full = resolve41(dir, entry.name);
|
|
@@ -38793,8 +38845,8 @@ var ATOMIC_RECOVERY_WINDOW_MS = 1000, RELOAD_DEBOUNCE_MS = 80, ATOMIC_WRITE_TEMP
|
|
|
38793
38845
|
const recoveryScan = (dir) => {
|
|
38794
38846
|
let entries;
|
|
38795
38847
|
try {
|
|
38796
|
-
const { readdirSync:
|
|
38797
|
-
entries =
|
|
38848
|
+
const { readdirSync: readdirSync11 } = __require("fs");
|
|
38849
|
+
entries = readdirSync11(dir, { withFileTypes: true });
|
|
38798
38850
|
} catch {
|
|
38799
38851
|
return;
|
|
38800
38852
|
}
|
|
@@ -39376,7 +39428,7 @@ var handleHTMXPageRequest = async (pagePath) => {
|
|
|
39376
39428
|
});
|
|
39377
39429
|
};
|
|
39378
39430
|
// src/core/prepare.ts
|
|
39379
|
-
import { existsSync as existsSync39, readdirSync as
|
|
39431
|
+
import { existsSync as existsSync39, readdirSync as readdirSync9, readFileSync as readFileSync33 } from "fs";
|
|
39380
39432
|
import { basename as basename16, join as join49, relative as relative18, resolve as resolve45 } from "path";
|
|
39381
39433
|
import { Elysia as Elysia8 } from "elysia";
|
|
39382
39434
|
|
|
@@ -40008,7 +40060,7 @@ var loadPrerenderMap = (prerenderDir) => {
|
|
|
40008
40060
|
return map3;
|
|
40009
40061
|
let entries;
|
|
40010
40062
|
try {
|
|
40011
|
-
entries =
|
|
40063
|
+
entries = readdirSync9(prerenderDir);
|
|
40012
40064
|
} catch {
|
|
40013
40065
|
return map3;
|
|
40014
40066
|
}
|
|
@@ -40317,7 +40369,7 @@ var loadDevCert = () => {
|
|
|
40317
40369
|
import {
|
|
40318
40370
|
mkdirSync as mkdirSync18,
|
|
40319
40371
|
readFileSync as readFileSync35,
|
|
40320
|
-
readdirSync as
|
|
40372
|
+
readdirSync as readdirSync10,
|
|
40321
40373
|
unlinkSync as unlinkSync2,
|
|
40322
40374
|
writeFileSync as writeFileSync11
|
|
40323
40375
|
} from "fs";
|
|
@@ -47033,5 +47085,5 @@ export {
|
|
|
47033
47085
|
ANGULAR_INIT_TIMEOUT_MS
|
|
47034
47086
|
};
|
|
47035
47087
|
|
|
47036
|
-
//# debugId=
|
|
47088
|
+
//# debugId=3B1B82477E3C141D64756E2164756E21
|
|
47037
47089
|
//# sourceMappingURL=index.js.map
|