@absolutejs/absolute 0.19.0-beta.988 → 0.19.0-beta.989
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/angular/index.js.map +2 -2
- package/dist/angular/server.js.map +2 -2
- package/dist/build.js +55 -50
- package/dist/build.js.map +4 -4
- package/dist/index.js +67 -62
- package/dist/index.js.map +4 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -13192,7 +13192,7 @@ __export(exports_compileVue, {
|
|
|
13192
13192
|
compileVue: () => compileVue,
|
|
13193
13193
|
clearVueHmrCaches: () => clearVueHmrCaches
|
|
13194
13194
|
});
|
|
13195
|
-
import { existsSync as existsSync22 } from "fs";
|
|
13195
|
+
import { existsSync as existsSync22, readFileSync as readFileSync19, realpathSync } from "fs";
|
|
13196
13196
|
import { mkdir as mkdir5 } from "fs/promises";
|
|
13197
13197
|
import {
|
|
13198
13198
|
basename as basename8,
|
|
@@ -13332,6 +13332,11 @@ var resolveDevClientDir3 = () => {
|
|
|
13332
13332
|
]);
|
|
13333
13333
|
const hasScript = descriptor.script || descriptor.scriptSetup;
|
|
13334
13334
|
const compiledScript = hasScript ? compiler.compileScript(descriptor, {
|
|
13335
|
+
fs: {
|
|
13336
|
+
fileExists: existsSync22,
|
|
13337
|
+
readFile: (file4) => existsSync22(file4) ? readFileSync19(file4, "utf-8") : undefined,
|
|
13338
|
+
realpath: realpathSync
|
|
13339
|
+
},
|
|
13335
13340
|
id: componentId,
|
|
13336
13341
|
inlineTemplate: false,
|
|
13337
13342
|
sourceMap: true
|
|
@@ -14150,7 +14155,7 @@ __export(exports_compileAngular, {
|
|
|
14150
14155
|
compileAngularFile: () => compileAngularFile,
|
|
14151
14156
|
compileAngular: () => compileAngular
|
|
14152
14157
|
});
|
|
14153
|
-
import { existsSync as existsSync23, readFileSync as
|
|
14158
|
+
import { existsSync as existsSync23, readFileSync as readFileSync20, promises as fs5 } from "fs";
|
|
14154
14159
|
import { join as join29, basename as basename9, sep as sep3, dirname as dirname16, resolve as resolve24, relative as relative11 } from "path";
|
|
14155
14160
|
var {Glob: Glob6 } = globalThis.Bun;
|
|
14156
14161
|
import ts10 from "typescript";
|
|
@@ -14487,7 +14492,7 @@ var traceAngularPhase = async (name, fn2, metadata2) => {
|
|
|
14487
14492
|
const outputPath = resolve24(join29(outDir, relative11(process.cwd(), resolve24(inputPath)).replace(/\.[cm]?[tj]sx?$/, ".js")));
|
|
14488
14493
|
return [
|
|
14489
14494
|
outputPath,
|
|
14490
|
-
buildIslandMetadataExports(
|
|
14495
|
+
buildIslandMetadataExports(readFileSync20(inputPath, "utf-8"))
|
|
14491
14496
|
];
|
|
14492
14497
|
})), { entries: inputPaths.length });
|
|
14493
14498
|
await traceAngularPhase("aot/preload-compiler", () => import("@angular/compiler"));
|
|
@@ -14798,7 +14803,7 @@ ${fields}
|
|
|
14798
14803
|
if (!existsSync23(templatePath)) {
|
|
14799
14804
|
throw new Error(`Unable to inline Angular templateUrl "${templateUrlMatch[1]}": file not found at ${templatePath}`);
|
|
14800
14805
|
}
|
|
14801
|
-
const templateRaw2 =
|
|
14806
|
+
const templateRaw2 = readFileSync20(templatePath, "utf-8");
|
|
14802
14807
|
const lowered2 = lowerAngularDeferSyntax(templateRaw2);
|
|
14803
14808
|
const escaped2 = escapeTemplateContent(lowered2.template);
|
|
14804
14809
|
const replacedSource2 = source.slice(0, templateUrlMatch.index) + `template: \`${escaped2}\`` + source.slice(templateUrlMatch.index + templateUrlMatch[0].length);
|
|
@@ -15125,7 +15130,7 @@ export const __ABSOLUTE_PAGE_USES_LEGACY_ANIMATIONS__ = true;
|
|
|
15125
15130
|
const providersHashInput = providersInjection ? (() => {
|
|
15126
15131
|
let providersSourceContent = "";
|
|
15127
15132
|
try {
|
|
15128
|
-
providersSourceContent =
|
|
15133
|
+
providersSourceContent = readFileSync20(providersInjection.appProvidersSource, "utf-8");
|
|
15129
15134
|
} catch {}
|
|
15130
15135
|
return JSON.stringify({
|
|
15131
15136
|
basePath: pageInjectionForHash?.basePath ?? null,
|
|
@@ -16113,7 +16118,7 @@ __export(exports_fastHmrCompiler, {
|
|
|
16113
16118
|
primeComponentFingerprint: () => primeComponentFingerprint,
|
|
16114
16119
|
invalidateFingerprintCache: () => invalidateFingerprintCache
|
|
16115
16120
|
});
|
|
16116
|
-
import { existsSync as existsSync24, readFileSync as
|
|
16121
|
+
import { existsSync as existsSync24, readFileSync as readFileSync21, statSync as statSync2 } from "fs";
|
|
16117
16122
|
import { dirname as dirname17, extname as extname6, relative as relative12, resolve as resolve25 } from "path";
|
|
16118
16123
|
import ts14 from "typescript";
|
|
16119
16124
|
var fail = (reason, detail, location) => ({
|
|
@@ -16430,7 +16435,7 @@ var fail = (reason, detail, location) => ({
|
|
|
16430
16435
|
continue;
|
|
16431
16436
|
let content;
|
|
16432
16437
|
try {
|
|
16433
|
-
content =
|
|
16438
|
+
content = readFileSync21(candidate, "utf-8");
|
|
16434
16439
|
} catch {
|
|
16435
16440
|
continue;
|
|
16436
16441
|
}
|
|
@@ -17009,7 +17014,7 @@ var fail = (reason, detail, location) => ({
|
|
|
17009
17014
|
return cached.info;
|
|
17010
17015
|
let source;
|
|
17011
17016
|
try {
|
|
17012
|
-
source =
|
|
17017
|
+
source = readFileSync21(filePath, "utf-8");
|
|
17013
17018
|
} catch {
|
|
17014
17019
|
childComponentInfoCache.set(cacheKey2, {
|
|
17015
17020
|
info: null,
|
|
@@ -17063,7 +17068,7 @@ var fail = (reason, detail, location) => ({
|
|
|
17063
17068
|
return cached.info;
|
|
17064
17069
|
let content;
|
|
17065
17070
|
try {
|
|
17066
|
-
content =
|
|
17071
|
+
content = readFileSync21(dtsPath, "utf-8");
|
|
17067
17072
|
} catch {
|
|
17068
17073
|
childComponentInfoCache.set(cacheKey2, {
|
|
17069
17074
|
info: null,
|
|
@@ -17183,7 +17188,7 @@ var fail = (reason, detail, location) => ({
|
|
|
17183
17188
|
return null;
|
|
17184
17189
|
let content;
|
|
17185
17190
|
try {
|
|
17186
|
-
content =
|
|
17191
|
+
content = readFileSync21(startDtsPath, "utf-8");
|
|
17187
17192
|
} catch {
|
|
17188
17193
|
return null;
|
|
17189
17194
|
}
|
|
@@ -17401,7 +17406,7 @@ var fail = (reason, detail, location) => ({
|
|
|
17401
17406
|
return cached.hasProviders;
|
|
17402
17407
|
let source;
|
|
17403
17408
|
try {
|
|
17404
|
-
source =
|
|
17409
|
+
source = readFileSync21(filePath, "utf8");
|
|
17405
17410
|
} catch {
|
|
17406
17411
|
return true;
|
|
17407
17412
|
}
|
|
@@ -17709,7 +17714,7 @@ ${transpiled}
|
|
|
17709
17714
|
return null;
|
|
17710
17715
|
const ext = extname6(abs).toLowerCase();
|
|
17711
17716
|
if (!STYLE_PREPROCESSED_EXT.has(ext) || ext === ".css") {
|
|
17712
|
-
return
|
|
17717
|
+
return readFileSync21(abs, "utf8");
|
|
17713
17718
|
}
|
|
17714
17719
|
try {
|
|
17715
17720
|
const { compileStyleFileIfNeededSync: compileStyleFileIfNeededSync2 } = (init_stylePreprocessor(), __toCommonJS(exports_stylePreprocessor));
|
|
@@ -17748,7 +17753,7 @@ ${block}
|
|
|
17748
17753
|
const opts = {};
|
|
17749
17754
|
if (existsSync24(tsconfigPath)) {
|
|
17750
17755
|
try {
|
|
17751
|
-
const text =
|
|
17756
|
+
const text = readFileSync21(tsconfigPath, "utf8");
|
|
17752
17757
|
const parsed = ts14.parseConfigFileTextToJson(tsconfigPath, text);
|
|
17753
17758
|
if (!parsed.error && parsed.config) {
|
|
17754
17759
|
const cfg = parsed.config;
|
|
@@ -17782,7 +17787,7 @@ ${block}
|
|
|
17782
17787
|
} catch (err) {
|
|
17783
17788
|
return fail("unexpected-error", `import @angular/compiler: ${err}`);
|
|
17784
17789
|
}
|
|
17785
|
-
const tsSource =
|
|
17790
|
+
const tsSource = readFileSync21(componentFilePath, "utf8");
|
|
17786
17791
|
const sourceFile = ts14.createSourceFile(componentFilePath, tsSource, ts14.ScriptTarget.ES2022, true, ts14.ScriptKind.TS);
|
|
17787
17792
|
const classNode = findClassDeclaration(sourceFile, className);
|
|
17788
17793
|
if (!classNode) {
|
|
@@ -17832,7 +17837,7 @@ ${block}
|
|
|
17832
17837
|
if (!existsSync24(tplAbs)) {
|
|
17833
17838
|
return fail("template-resource-not-found", `Template file not found: ${tplAbs}`, { file: componentFilePath });
|
|
17834
17839
|
}
|
|
17835
|
-
templateText =
|
|
17840
|
+
templateText = readFileSync21(tplAbs, "utf8");
|
|
17836
17841
|
templatePath = tplAbs;
|
|
17837
17842
|
} else {
|
|
17838
17843
|
return fail("unsupported-decorator-args", "missing template/templateUrl");
|
|
@@ -19005,7 +19010,7 @@ var REQUIRED_ANGULAR_SPECIFIERS_BASE, requiredAngularSpecifiers = (jitMode) => j
|
|
|
19005
19010
|
}
|
|
19006
19011
|
return { angular, transitiveRoots };
|
|
19007
19012
|
}, PARTIAL_DECL_MARKERS, containsPartialDeclarations = (source) => PARTIAL_DECL_MARKERS.some((marker) => source.includes(marker)), collectTransitiveAngularSpecs = async (roots, angularFound) => {
|
|
19008
|
-
const { readFileSync:
|
|
19013
|
+
const { readFileSync: readFileSync22 } = await import("fs");
|
|
19009
19014
|
const transpiler6 = new Bun.Transpiler({ loader: "js" });
|
|
19010
19015
|
const visited = new Set;
|
|
19011
19016
|
const frontier = [];
|
|
@@ -19026,7 +19031,7 @@ var REQUIRED_ANGULAR_SPECIFIERS_BASE, requiredAngularSpecifiers = (jitMode) => j
|
|
|
19026
19031
|
}
|
|
19027
19032
|
let content;
|
|
19028
19033
|
try {
|
|
19029
|
-
content =
|
|
19034
|
+
content = readFileSync22(resolved, "utf-8");
|
|
19030
19035
|
} catch {
|
|
19031
19036
|
continue;
|
|
19032
19037
|
}
|
|
@@ -19231,11 +19236,11 @@ var vueSpecifiers, toSafeFileName3 = (specifier) => specifier.replace(/\//g, "_"
|
|
|
19231
19236
|
console.warn("\u26A0\uFE0F Vue vendor build had errors:", result.logs);
|
|
19232
19237
|
return;
|
|
19233
19238
|
}
|
|
19234
|
-
const { readFileSync:
|
|
19239
|
+
const { readFileSync: readFileSync22, writeFileSync: writeFileSync9, readdirSync: readdirSync5 } = await import("fs");
|
|
19235
19240
|
const files = readdirSync5(vendorDir).filter((f2) => f2.endsWith(".js"));
|
|
19236
19241
|
for (const file5 of files) {
|
|
19237
19242
|
const filePath = join33(vendorDir, file5);
|
|
19238
|
-
const content =
|
|
19243
|
+
const content = readFileSync22(filePath, "utf-8");
|
|
19239
19244
|
if (!content.includes("__VUE_HMR_RUNTIME__"))
|
|
19240
19245
|
continue;
|
|
19241
19246
|
const patched = content.replace(/getGlobalThis\(\)\.__VUE_HMR_RUNTIME__\s*=\s*\{/, "getGlobalThis().__VUE_HMR_RUNTIME__ = getGlobalThis().__VUE_HMR_RUNTIME__ || {");
|
|
@@ -19504,7 +19509,7 @@ import {
|
|
|
19504
19509
|
cpSync,
|
|
19505
19510
|
existsSync as existsSync27,
|
|
19506
19511
|
mkdirSync as mkdirSync12,
|
|
19507
|
-
readFileSync as
|
|
19512
|
+
readFileSync as readFileSync22,
|
|
19508
19513
|
rmSync as rmSync2,
|
|
19509
19514
|
statSync as statSync3,
|
|
19510
19515
|
writeFileSync as writeFileSync9
|
|
@@ -19632,7 +19637,7 @@ var isDev2, isBuildTraceEnabled = () => {
|
|
|
19632
19637
|
addWorkerPathIfExists(file5, relPath, workerPaths);
|
|
19633
19638
|
}
|
|
19634
19639
|
}, collectWorkerPathsFromFile = (file5, patterns, workerPaths) => {
|
|
19635
|
-
const content =
|
|
19640
|
+
const content = readFileSync22(file5, "utf-8");
|
|
19636
19641
|
for (const pattern of patterns) {
|
|
19637
19642
|
collectWorkerPathsFromContent(content, pattern, file5, workerPaths);
|
|
19638
19643
|
}
|
|
@@ -19681,7 +19686,7 @@ var isDev2, isBuildTraceEnabled = () => {
|
|
|
19681
19686
|
const indexFiles = readDir(reactIndexesPath).filter((file5) => file5.endsWith(".tsx"));
|
|
19682
19687
|
const pagesRel = relative13(process.cwd(), resolve28(reactPagesPath)).replace(/\\/g, "/");
|
|
19683
19688
|
for (const file5 of indexFiles) {
|
|
19684
|
-
let content =
|
|
19689
|
+
let content = readFileSync22(join36(reactIndexesPath, file5), "utf-8");
|
|
19685
19690
|
content = content.replace(/from\s*['"]([^'"]*\/pages\/([^'"]+))['"]/g, (_match, _fullPath, componentName) => `from '/@src/${pagesRel}/${componentName}'`);
|
|
19686
19691
|
writeFileSync9(join36(devIndexDir, file5), content);
|
|
19687
19692
|
}
|
|
@@ -19693,7 +19698,7 @@ var isDev2, isBuildTraceEnabled = () => {
|
|
|
19693
19698
|
const indexFile = join36(svelteIndexDir, "pages", `${name}.js`);
|
|
19694
19699
|
if (!existsSync27(indexFile))
|
|
19695
19700
|
continue;
|
|
19696
|
-
let content =
|
|
19701
|
+
let content = readFileSync22(indexFile, "utf-8");
|
|
19697
19702
|
const srcRel = relative13(process.cwd(), resolve28(entry)).replace(/\\/g, "/");
|
|
19698
19703
|
content = content.replace(/import\s+Component\s+from\s+['"]([^'"]+)['"]/, `import Component from "/@src/${srcRel}"`);
|
|
19699
19704
|
writeFileSync9(join36(devIndexDir, `${name}.svelte.js`), content);
|
|
@@ -19706,7 +19711,7 @@ var isDev2, isBuildTraceEnabled = () => {
|
|
|
19706
19711
|
const indexFile = join36(vueIndexDir, `${name}.js`);
|
|
19707
19712
|
if (!existsSync27(indexFile))
|
|
19708
19713
|
continue;
|
|
19709
|
-
let content =
|
|
19714
|
+
let content = readFileSync22(indexFile, "utf-8");
|
|
19710
19715
|
const srcRel = relative13(process.cwd(), resolve28(entry)).replace(/\\/g, "/");
|
|
19711
19716
|
content = content.replace(/import\s+Comp(?:\s*,\s*\*\s+as\s+\w+)?\s+from\s+['"]([^'"]+)['"]/, (match) => match.replace(/from\s+['"][^'"]+['"]/, `from "/@src/${srcRel}"`));
|
|
19712
19717
|
writeFileSync9(join36(devIndexDir, `${name}.vue.js`), content);
|
|
@@ -19757,7 +19762,7 @@ var isDev2, isBuildTraceEnabled = () => {
|
|
|
19757
19762
|
}
|
|
19758
19763
|
return result;
|
|
19759
19764
|
}, VUE_HMR_RUNTIME, injectVueComposableTracking = (outputPath, projectRoot) => {
|
|
19760
|
-
let content =
|
|
19765
|
+
let content = readFileSync22(outputPath, "utf-8");
|
|
19761
19766
|
const usePattern = /^var\s+(use[A-Z]\w*)\s*=/gm;
|
|
19762
19767
|
const useNames = [];
|
|
19763
19768
|
let match;
|
|
@@ -19807,7 +19812,7 @@ ${content.slice(firstUseIdx)}`;
|
|
|
19807
19812
|
}, rewriteUrlReferences = (outputPaths, urlFileMap) => {
|
|
19808
19813
|
const urlPattern = /new\s+URL\(\s*["'](\.\.?\/[^"']+)["']\s*,\s*import\.meta\.url\s*\)/g;
|
|
19809
19814
|
for (const outputPath of outputPaths) {
|
|
19810
|
-
let content =
|
|
19815
|
+
let content = readFileSync22(outputPath, "utf-8");
|
|
19811
19816
|
let changed = false;
|
|
19812
19817
|
content = content.replace(urlPattern, (_match, relPath) => {
|
|
19813
19818
|
const targetName = basename11(relPath);
|
|
@@ -20934,7 +20939,7 @@ ${content.slice(firstUseIdx)}`;
|
|
|
20934
20939
|
const injectHMRIntoHTMLFile = (filePath, framework) => {
|
|
20935
20940
|
if (!hmrClientBundle)
|
|
20936
20941
|
return;
|
|
20937
|
-
let html =
|
|
20942
|
+
let html = readFileSync22(filePath, "utf-8");
|
|
20938
20943
|
if (html.includes("data-hmr-client"))
|
|
20939
20944
|
return;
|
|
20940
20945
|
const tag = `<script>window.__HMR_FRAMEWORK__="${framework}";</script><script data-hmr-client>${hmrClientBundle}</script>`;
|
|
@@ -21320,7 +21325,7 @@ __export(exports_dependencyGraph, {
|
|
|
21320
21325
|
buildInitialDependencyGraph: () => buildInitialDependencyGraph,
|
|
21321
21326
|
addFileToGraph: () => addFileToGraph
|
|
21322
21327
|
});
|
|
21323
|
-
import { existsSync as existsSync29, readFileSync as
|
|
21328
|
+
import { existsSync as existsSync29, readFileSync as readFileSync23 } from "fs";
|
|
21324
21329
|
var {Glob: Glob9 } = globalThis.Bun;
|
|
21325
21330
|
import { resolve as resolve29 } from "path";
|
|
21326
21331
|
var emptyDependencyGraph, tsTranspiler, jsTranspiler, loaderForFile = (filePath) => {
|
|
@@ -21491,15 +21496,15 @@ var emptyDependencyGraph, tsTranspiler, jsTranspiler, loaderForFile = (filePath)
|
|
|
21491
21496
|
const lowerPath = filePath.toLowerCase();
|
|
21492
21497
|
const isSvelteOrVue = lowerPath.endsWith(".svelte") || lowerPath.endsWith(".vue");
|
|
21493
21498
|
if (loader === "html") {
|
|
21494
|
-
const content =
|
|
21499
|
+
const content = readFileSync23(filePath, "utf-8");
|
|
21495
21500
|
return extractHtmlDependencies(filePath, content);
|
|
21496
21501
|
}
|
|
21497
21502
|
if (loader === "tsx" || loader === "js") {
|
|
21498
|
-
const content =
|
|
21503
|
+
const content = readFileSync23(filePath, "utf-8");
|
|
21499
21504
|
return extractJsDependencies(filePath, content, loader);
|
|
21500
21505
|
}
|
|
21501
21506
|
if (isSvelteOrVue) {
|
|
21502
|
-
const content =
|
|
21507
|
+
const content = readFileSync23(filePath, "utf-8");
|
|
21503
21508
|
return extractSvelteVueDependencies(filePath, content);
|
|
21504
21509
|
}
|
|
21505
21510
|
return [];
|
|
@@ -21642,7 +21647,7 @@ var init_clientManager = __esm(() => {
|
|
|
21642
21647
|
});
|
|
21643
21648
|
|
|
21644
21649
|
// src/dev/pathUtils.ts
|
|
21645
|
-
import { existsSync as existsSync30, readdirSync as readdirSync5, readFileSync as
|
|
21650
|
+
import { existsSync as existsSync30, readdirSync as readdirSync5, readFileSync as readFileSync24 } from "fs";
|
|
21646
21651
|
import { dirname as dirname20, resolve as resolve31 } from "path";
|
|
21647
21652
|
var STYLE_EXTENSION_PATTERN2, detectFramework = (filePath, resolved) => {
|
|
21648
21653
|
if (shouldIgnorePath(filePath, resolved)) {
|
|
@@ -21742,7 +21747,7 @@ var STYLE_EXTENSION_PATTERN2, detectFramework = (filePath, resolved) => {
|
|
|
21742
21747
|
}
|
|
21743
21748
|
let source;
|
|
21744
21749
|
try {
|
|
21745
|
-
source =
|
|
21750
|
+
source = readFileSync24(full, "utf8");
|
|
21746
21751
|
} catch {
|
|
21747
21752
|
continue;
|
|
21748
21753
|
}
|
|
@@ -22117,10 +22122,10 @@ var init_assetStore = __esm(() => {
|
|
|
22117
22122
|
});
|
|
22118
22123
|
|
|
22119
22124
|
// src/dev/fileHashTracker.ts
|
|
22120
|
-
import { readFileSync as
|
|
22125
|
+
import { readFileSync as readFileSync25 } from "fs";
|
|
22121
22126
|
var computeFileHash = (filePath) => {
|
|
22122
22127
|
try {
|
|
22123
|
-
const fileContent =
|
|
22128
|
+
const fileContent = readFileSync25(filePath);
|
|
22124
22129
|
return Number(Bun.hash(fileContent));
|
|
22125
22130
|
} catch {
|
|
22126
22131
|
return UNFOUND_INDEX;
|
|
@@ -22334,7 +22339,7 @@ __export(exports_resolveOwningComponents, {
|
|
|
22334
22339
|
resolveDescendantsOfParent: () => resolveDescendantsOfParent,
|
|
22335
22340
|
invalidateResourceIndex: () => invalidateResourceIndex
|
|
22336
22341
|
});
|
|
22337
|
-
import { readdirSync as readdirSync7, readFileSync as
|
|
22342
|
+
import { readdirSync as readdirSync7, readFileSync as readFileSync26, statSync as statSync5 } from "fs";
|
|
22338
22343
|
import { dirname as dirname22, extname as extname9, join as join39, resolve as resolve36 } from "path";
|
|
22339
22344
|
import ts15 from "typescript";
|
|
22340
22345
|
var ENTITY_DECORATORS, isAngularSourceFile = (file5) => file5.endsWith(".ts") || file5.endsWith(".tsx"), walkAngularSourceFiles = (root) => {
|
|
@@ -22394,7 +22399,7 @@ var ENTITY_DECORATORS, isAngularSourceFile = (file5) => file5.endsWith(".ts") ||
|
|
|
22394
22399
|
}, parseDecoratedClasses = (filePath) => {
|
|
22395
22400
|
let source;
|
|
22396
22401
|
try {
|
|
22397
|
-
source =
|
|
22402
|
+
source = readFileSync26(filePath, "utf8");
|
|
22398
22403
|
} catch {
|
|
22399
22404
|
return [];
|
|
22400
22405
|
}
|
|
@@ -22484,7 +22489,7 @@ var ENTITY_DECORATORS, isAngularSourceFile = (file5) => file5.endsWith(".ts") ||
|
|
|
22484
22489
|
}, indexByRoot, resolveParentClassFile = (parentName, childFilePath, angularRoot) => {
|
|
22485
22490
|
let source;
|
|
22486
22491
|
try {
|
|
22487
|
-
source =
|
|
22492
|
+
source = readFileSync26(childFilePath, "utf8");
|
|
22488
22493
|
} catch {
|
|
22489
22494
|
return null;
|
|
22490
22495
|
}
|
|
@@ -22722,7 +22727,7 @@ __export(exports_moduleServer, {
|
|
|
22722
22727
|
createModuleServer: () => createModuleServer,
|
|
22723
22728
|
SRC_URL_PREFIX: () => SRC_URL_PREFIX
|
|
22724
22729
|
});
|
|
22725
|
-
import { existsSync as existsSync32, readFileSync as
|
|
22730
|
+
import { existsSync as existsSync32, readFileSync as readFileSync27, statSync as statSync6 } from "fs";
|
|
22726
22731
|
import { basename as basename13, dirname as dirname23, extname as extname10, join as join40, resolve as resolve37, relative as relative14 } from "path";
|
|
22727
22732
|
var SRC_PREFIX = "/@src/", jsTranspiler2, tsTranspiler2, tsxTranspiler, TRANSPILABLE, ALL_EXPORTS_RE, STRING_CONTENTS_RE, preserveTypeExports = (originalSource, transpiled, valueExports) => {
|
|
22728
22733
|
const codeOnly = originalSource.replace(STRING_CONTENTS_RE, '""');
|
|
@@ -22797,7 +22802,7 @@ ${stubs}
|
|
|
22797
22802
|
const pkgDir = resolve37(projectRoot, "node_modules", packageName ?? "");
|
|
22798
22803
|
const pkgJsonPath = join40(pkgDir, "package.json");
|
|
22799
22804
|
if (existsSync32(pkgJsonPath)) {
|
|
22800
|
-
const pkg = JSON.parse(
|
|
22805
|
+
const pkg = JSON.parse(readFileSync27(pkgJsonPath, "utf-8"));
|
|
22801
22806
|
const esmEntry = typeof pkg.module === "string" && pkg.module || typeof pkg.browser === "string" && pkg.browser;
|
|
22802
22807
|
if (esmEntry) {
|
|
22803
22808
|
const resolved = resolve37(pkgDir, esmEntry);
|
|
@@ -22898,7 +22903,7 @@ ${code}`;
|
|
|
22898
22903
|
reactFastRefreshWarningEmitted = true;
|
|
22899
22904
|
logWarn("React HMR is blocked: this Bun build ignores " + "`reactFastRefresh` on Bun.Transpiler, so component state " + "cannot be preserved across edits. Tracking " + "https://github.com/oven-sh/bun/pull/28312 \u2014 if it still has " + "not merged, leave a \uD83D\uDC4D on the PR so the Bun team knows it " + "is blocking you. Until then, React edits trigger a full " + "reload instead of a fast refresh.");
|
|
22900
22905
|
}, transformReactFile = (filePath, projectRoot, rewriter) => {
|
|
22901
|
-
const raw =
|
|
22906
|
+
const raw = readFileSync27(filePath, "utf-8");
|
|
22902
22907
|
const valueExports = tsxTranspiler.scan(raw).exports;
|
|
22903
22908
|
let transpiled = reactTranspiler.transformSync(raw);
|
|
22904
22909
|
transpiled = preserveTypeExports(raw, transpiled, valueExports);
|
|
@@ -22914,7 +22919,7 @@ ${transpiled}`;
|
|
|
22914
22919
|
transpiled += buildIslandMetadataExports(raw);
|
|
22915
22920
|
return rewriteImports(transpiled, filePath, projectRoot, rewriter);
|
|
22916
22921
|
}, transformPlainFile = (filePath, projectRoot, rewriter, vueDir) => {
|
|
22917
|
-
const raw =
|
|
22922
|
+
const raw = readFileSync27(filePath, "utf-8");
|
|
22918
22923
|
const ext = extname10(filePath);
|
|
22919
22924
|
const isTS = ext === ".ts" || ext === ".tsx";
|
|
22920
22925
|
const isTSX = ext === ".tsx" || ext === ".jsx";
|
|
@@ -23080,7 +23085,7 @@ ${code}`;
|
|
|
23080
23085
|
` + ` var __hmr_accept = function(cb) { window.__SVELTE_HMR_ACCEPT__[${JSON.stringify(moduleUrl)}] = cb; };`);
|
|
23081
23086
|
return code.replace(/import\.meta\.hot\.accept\(/g, "__hmr_accept(");
|
|
23082
23087
|
}, transformSvelteFile = async (filePath, projectRoot, rewriter, stylePreprocessors) => {
|
|
23083
|
-
const raw =
|
|
23088
|
+
const raw = readFileSync27(filePath, "utf-8");
|
|
23084
23089
|
if (!svelteCompiler) {
|
|
23085
23090
|
svelteCompiler = await import("svelte/compiler");
|
|
23086
23091
|
}
|
|
@@ -23142,7 +23147,7 @@ export default __script__;`;
|
|
|
23142
23147
|
return `${cssInjection}
|
|
23143
23148
|
${code}`;
|
|
23144
23149
|
}, transformVueFile = async (filePath, projectRoot, rewriter, vueDir, stylePreprocessors) => {
|
|
23145
|
-
const rawSource =
|
|
23150
|
+
const rawSource = readFileSync27(filePath, "utf-8");
|
|
23146
23151
|
const raw = addAutoRouterSetupApp(rawSource);
|
|
23147
23152
|
if (!vueCompiler) {
|
|
23148
23153
|
vueCompiler = await import("@vue/compiler-sfc");
|
|
@@ -23197,7 +23202,7 @@ ${code}`;
|
|
|
23197
23202
|
}
|
|
23198
23203
|
});
|
|
23199
23204
|
}, handleCssRequest = (filePath) => {
|
|
23200
|
-
const raw =
|
|
23205
|
+
const raw = readFileSync27(filePath, "utf-8");
|
|
23201
23206
|
const escaped = raw.replace(/\\/g, "\\\\").replace(/`/g, "\\`").replace(/\$/g, "\\$");
|
|
23202
23207
|
return [
|
|
23203
23208
|
`const style = document.createElement('style');`,
|
|
@@ -26356,7 +26361,7 @@ var toSafeFileName6 = (specifier) => {
|
|
|
26356
26361
|
framework: Array.from(framework).filter(isResolvable4)
|
|
26357
26362
|
};
|
|
26358
26363
|
}, collectTransitiveImports = async (specs, alreadyVendored, alreadyScanned) => {
|
|
26359
|
-
const { readFileSync:
|
|
26364
|
+
const { readFileSync: readFileSync28 } = await import("fs");
|
|
26360
26365
|
const transpiler6 = new Bun.Transpiler({ loader: "js" });
|
|
26361
26366
|
const newSpecs = new Set;
|
|
26362
26367
|
for (const spec of specs) {
|
|
@@ -26371,7 +26376,7 @@ var toSafeFileName6 = (specifier) => {
|
|
|
26371
26376
|
}
|
|
26372
26377
|
let content;
|
|
26373
26378
|
try {
|
|
26374
|
-
content =
|
|
26379
|
+
content = readFileSync28(resolved, "utf-8");
|
|
26375
26380
|
} catch {
|
|
26376
26381
|
continue;
|
|
26377
26382
|
}
|
|
@@ -27177,7 +27182,7 @@ __export(exports_devtoolsJson, {
|
|
|
27177
27182
|
normalizeDevtoolsWorkspaceRoot: () => normalizeDevtoolsWorkspaceRoot,
|
|
27178
27183
|
devtoolsJson: () => devtoolsJson
|
|
27179
27184
|
});
|
|
27180
|
-
import { existsSync as existsSync34, mkdirSync as mkdirSync15, readFileSync as
|
|
27185
|
+
import { existsSync as existsSync34, mkdirSync as mkdirSync15, readFileSync as readFileSync28, writeFileSync as writeFileSync10 } from "fs";
|
|
27181
27186
|
import { dirname as dirname26, join as join43, resolve as resolve43 } from "path";
|
|
27182
27187
|
import { Elysia as Elysia3 } from "elysia";
|
|
27183
27188
|
var ENDPOINT = "/.well-known/appspecific/com.chrome.devtools.json", UUID_CACHE_KEY = "__absoluteDevtoolsWorkspaceUuid", getGlobalUuid = () => Reflect.get(globalThis, UUID_CACHE_KEY), setGlobalUuid = (uuid) => {
|
|
@@ -27187,7 +27192,7 @@ var ENDPOINT = "/.well-known/appspecific/com.chrome.devtools.json", UUID_CACHE_K
|
|
|
27187
27192
|
if (!existsSync34(cachePath))
|
|
27188
27193
|
return null;
|
|
27189
27194
|
try {
|
|
27190
|
-
const value =
|
|
27195
|
+
const value = readFileSync28(cachePath, "utf-8").trim();
|
|
27191
27196
|
return isUuidV4(value) ? value : null;
|
|
27192
27197
|
} catch {
|
|
27193
27198
|
return null;
|
|
@@ -27457,7 +27462,7 @@ __export(exports_prerender, {
|
|
|
27457
27462
|
prerender: () => prerender,
|
|
27458
27463
|
PRERENDER_BYPASS_HEADER: () => PRERENDER_BYPASS_HEADER
|
|
27459
27464
|
});
|
|
27460
|
-
import { mkdirSync as mkdirSync16, readFileSync as
|
|
27465
|
+
import { mkdirSync as mkdirSync16, readFileSync as readFileSync29 } from "fs";
|
|
27461
27466
|
import { join as join44 } from "path";
|
|
27462
27467
|
var SERVER_OUTPUT_LIMIT = 4000, STARTUP_POLL_INTERVAL_MS = 100, DEFAULT_STARTUP_TIMEOUT_MS = 30000, PRERENDER_BYPASS_HEADER = "X-Absolute-Prerender-Bypass", routeToFilename = (route) => route === "/" ? "index.html" : `${route.slice(1).replace(/\//g, "-")}.html`, writeTimestamp = async (htmlPath) => {
|
|
27463
27468
|
const metaPath = htmlPath.replace(/\.html$/, ".meta");
|
|
@@ -27465,7 +27470,7 @@ var SERVER_OUTPUT_LIMIT = 4000, STARTUP_POLL_INTERVAL_MS = 100, DEFAULT_STARTUP_
|
|
|
27465
27470
|
}, readTimestamp = (htmlPath) => {
|
|
27466
27471
|
const metaPath = htmlPath.replace(/\.html$/, ".meta");
|
|
27467
27472
|
try {
|
|
27468
|
-
const content =
|
|
27473
|
+
const content = readFileSync29(metaPath, "utf-8");
|
|
27469
27474
|
return Number(content) || 0;
|
|
27470
27475
|
} catch {
|
|
27471
27476
|
return 0;
|
|
@@ -28316,7 +28321,7 @@ var handleHTMXPageRequest = async (pagePath) => {
|
|
|
28316
28321
|
};
|
|
28317
28322
|
// src/core/prepare.ts
|
|
28318
28323
|
init_loadConfig();
|
|
28319
|
-
import { existsSync as existsSync36, readdirSync as readdirSync8, readFileSync as
|
|
28324
|
+
import { existsSync as existsSync36, readdirSync as readdirSync8, readFileSync as readFileSync30 } from "fs";
|
|
28320
28325
|
import { basename as basename15, join as join45, relative as relative17, resolve as resolve45 } from "path";
|
|
28321
28326
|
import { Elysia as Elysia5 } from "elysia";
|
|
28322
28327
|
|
|
@@ -28889,7 +28894,7 @@ var prepare = async (configOrPath) => {
|
|
|
28889
28894
|
return result;
|
|
28890
28895
|
}
|
|
28891
28896
|
stepStartedAt = performance.now();
|
|
28892
|
-
const manifest = JSON.parse(
|
|
28897
|
+
const manifest = JSON.parse(readFileSync30(`${buildDir}/manifest.json`, "utf-8"));
|
|
28893
28898
|
setCurrentIslandManifest(manifest);
|
|
28894
28899
|
if (config.islands?.registry) {
|
|
28895
28900
|
setCurrentIslandRegistry(await loadIslandRegistry(config.islands.registry));
|
|
@@ -28899,7 +28904,7 @@ var prepare = async (configOrPath) => {
|
|
|
28899
28904
|
stepStartedAt = performance.now();
|
|
28900
28905
|
const conventionsPath = join45(buildDir, "conventions.json");
|
|
28901
28906
|
if (existsSync36(conventionsPath)) {
|
|
28902
|
-
const conventions2 = JSON.parse(
|
|
28907
|
+
const conventions2 = JSON.parse(readFileSync30(conventionsPath, "utf-8"));
|
|
28903
28908
|
setConventions(conventions2);
|
|
28904
28909
|
}
|
|
28905
28910
|
recordStep("load production conventions", stepStartedAt);
|
|
@@ -28971,7 +28976,7 @@ import { argv } from "process";
|
|
|
28971
28976
|
var {env: env4 } = globalThis.Bun;
|
|
28972
28977
|
|
|
28973
28978
|
// src/dev/devCert.ts
|
|
28974
|
-
import { existsSync as existsSync37, mkdirSync as mkdirSync17, readFileSync as
|
|
28979
|
+
import { existsSync as existsSync37, mkdirSync as mkdirSync17, readFileSync as readFileSync31, rmSync as rmSync4 } from "fs";
|
|
28975
28980
|
import { join as join46 } from "path";
|
|
28976
28981
|
var CERT_DIR = join46(process.cwd(), ".absolutejs");
|
|
28977
28982
|
var CERT_PATH = join46(CERT_DIR, "cert.pem");
|
|
@@ -28982,7 +28987,7 @@ var devWarn = (msg) => console.log(`\x1B[2m${new Date().toLocaleTimeString()}\x1
|
|
|
28982
28987
|
var certFilesExist = () => existsSync37(CERT_PATH) && existsSync37(KEY_PATH);
|
|
28983
28988
|
var isCertExpired = () => {
|
|
28984
28989
|
try {
|
|
28985
|
-
const certPem =
|
|
28990
|
+
const certPem = readFileSync31(CERT_PATH, "utf-8");
|
|
28986
28991
|
const proc = Bun.spawnSync(["openssl", "x509", "-enddate", "-noout"], {
|
|
28987
28992
|
stdin: new TextEncoder().encode(certPem)
|
|
28988
28993
|
});
|
|
@@ -29078,8 +29083,8 @@ var loadDevCert = () => {
|
|
|
29078
29083
|
return null;
|
|
29079
29084
|
try {
|
|
29080
29085
|
return {
|
|
29081
|
-
cert:
|
|
29082
|
-
key:
|
|
29086
|
+
cert: readFileSync31(paths.cert, "utf-8"),
|
|
29087
|
+
key: readFileSync31(paths.key, "utf-8")
|
|
29083
29088
|
};
|
|
29084
29089
|
} catch {
|
|
29085
29090
|
return null;
|
|
@@ -29354,7 +29359,7 @@ var generateHeadElement = ({
|
|
|
29354
29359
|
};
|
|
29355
29360
|
// src/utils/defineEnv.ts
|
|
29356
29361
|
var {env: bunEnv } = globalThis.Bun;
|
|
29357
|
-
import { existsSync as existsSync39, readFileSync as
|
|
29362
|
+
import { existsSync as existsSync39, readFileSync as readFileSync32 } from "fs";
|
|
29358
29363
|
import { resolve as resolve47 } from "path";
|
|
29359
29364
|
|
|
29360
29365
|
// node_modules/@sinclair/typebox/build/esm/type/guard/value.mjs
|
|
@@ -35396,13 +35401,13 @@ var checkEnvFileSecurity = (properties) => {
|
|
|
35396
35401
|
const sensitiveKeys = Object.keys(properties).filter(isSensitive);
|
|
35397
35402
|
if (sensitiveKeys.length === 0)
|
|
35398
35403
|
return;
|
|
35399
|
-
const envContent =
|
|
35404
|
+
const envContent = readFileSync32(envPath, "utf-8");
|
|
35400
35405
|
const presentKeys = sensitiveKeys.filter((key) => envContent.includes(`${key}=`));
|
|
35401
35406
|
if (presentKeys.length === 0)
|
|
35402
35407
|
return;
|
|
35403
35408
|
const gitignorePath = resolve47(cwd2, ".gitignore");
|
|
35404
35409
|
if (existsSync39(gitignorePath)) {
|
|
35405
|
-
const gitignore =
|
|
35410
|
+
const gitignore = readFileSync32(gitignorePath, "utf-8");
|
|
35406
35411
|
if (gitignore.split(`
|
|
35407
35412
|
`).some((line) => line.trim() === ".env"))
|
|
35408
35413
|
return;
|
|
@@ -35643,5 +35648,5 @@ export {
|
|
|
35643
35648
|
ANGULAR_INIT_TIMEOUT_MS
|
|
35644
35649
|
};
|
|
35645
35650
|
|
|
35646
|
-
//# debugId=
|
|
35651
|
+
//# debugId=17E22E0D3B1C272064756E2164756E21
|
|
35647
35652
|
//# sourceMappingURL=index.js.map
|