@absolutejs/absolute 0.19.0-beta.830 → 0.19.0-beta.831
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/index.js
CHANGED
|
@@ -62,7 +62,7 @@ var __require = import.meta.require;
|
|
|
62
62
|
|
|
63
63
|
// src/angular/resolveAngularPackage.ts
|
|
64
64
|
import { existsSync, readFileSync } from "fs";
|
|
65
|
-
import { join
|
|
65
|
+
import { join, resolve } from "path";
|
|
66
66
|
var resolveAngularPackageDir = (specifier) => {
|
|
67
67
|
const fromCompiledRuntime = process.env.ABSOLUTE_BUILD_DIR ? resolve(process.env.ABSOLUTE_BUILD_DIR, "node_modules", specifier) : null;
|
|
68
68
|
if (fromCompiledRuntime && existsSync(fromCompiledRuntime)) {
|
|
@@ -75,10 +75,10 @@ var resolveAngularPackageDir = (specifier) => {
|
|
|
75
75
|
return null;
|
|
76
76
|
}, resolvePackageEntry = (packageDir) => {
|
|
77
77
|
try {
|
|
78
|
-
const pkg = JSON.parse(readFileSync(
|
|
78
|
+
const pkg = JSON.parse(readFileSync(join(packageDir, "package.json"), "utf-8"));
|
|
79
79
|
const rootExport = pkg.exports?.["."];
|
|
80
80
|
const entry = (typeof rootExport === "string" ? rootExport : rootExport?.default) ?? pkg.module ?? pkg.main ?? "index.js";
|
|
81
|
-
return
|
|
81
|
+
return join(packageDir, entry);
|
|
82
82
|
} catch {
|
|
83
83
|
return packageDir;
|
|
84
84
|
}
|
|
@@ -93,7 +93,7 @@ var resolveAngularPackageDir = (specifier) => {
|
|
|
93
93
|
resolve(process.cwd(), "build")
|
|
94
94
|
].filter((value) => Boolean(value));
|
|
95
95
|
for (const buildDir of buildDirs) {
|
|
96
|
-
const vendorPath =
|
|
96
|
+
const vendorPath = join(buildDir, "angular", "vendor", "server", `${toSafeVendorName(specifier)}.js`);
|
|
97
97
|
if (existsSync(vendorPath))
|
|
98
98
|
return vendorPath;
|
|
99
99
|
}
|
|
@@ -152,7 +152,7 @@ import {
|
|
|
152
152
|
dirname as dirname2,
|
|
153
153
|
extname,
|
|
154
154
|
isAbsolute,
|
|
155
|
-
join as
|
|
155
|
+
join as join3,
|
|
156
156
|
relative,
|
|
157
157
|
resolve as resolve2
|
|
158
158
|
} from "path";
|
|
@@ -251,13 +251,13 @@ ${message}`);
|
|
|
251
251
|
const ext = extname(basePath);
|
|
252
252
|
const paths = ext ? [basePath] : getLanguageExtensions(language).flatMap((extension) => [
|
|
253
253
|
`${basePath}${extension}`,
|
|
254
|
-
|
|
254
|
+
join3(basePath, `index${extension}`)
|
|
255
255
|
]);
|
|
256
256
|
if (language === "scss" || language === "sass") {
|
|
257
257
|
return paths.flatMap((path) => {
|
|
258
258
|
const dir = dirname2(path);
|
|
259
259
|
const base = path.slice(dir.length + 1);
|
|
260
|
-
return [path,
|
|
260
|
+
return [path, join3(dir, `_${base}`)];
|
|
261
261
|
});
|
|
262
262
|
}
|
|
263
263
|
return paths;
|
|
@@ -662,7 +662,7 @@ var init_stylePreprocessor = __esm(() => {
|
|
|
662
662
|
STYLE_LANGUAGE_PATTERN = /^(s[ac]ss|less|styl(?:us)?)$/i;
|
|
663
663
|
importOptionalPeer = new Function("specifier", "return import(specifier)");
|
|
664
664
|
requireOptionalPeer = new Function("specifier", "return require(specifier)");
|
|
665
|
-
requireFromCwd = createRequire(
|
|
665
|
+
requireFromCwd = createRequire(join3(process.cwd(), "package.json"));
|
|
666
666
|
styleDependencyGraph = new Map;
|
|
667
667
|
styleOutputHashes = new Map;
|
|
668
668
|
stylePreprocessorPlugin = createStylePreprocessorPlugin();
|
|
@@ -5799,9 +5799,9 @@ var init_tailwindCompiler = __esm(() => {
|
|
|
5799
5799
|
|
|
5800
5800
|
// src/build/compileTailwind.ts
|
|
5801
5801
|
import { mkdir } from "fs/promises";
|
|
5802
|
-
import { dirname as dirname4, join as
|
|
5802
|
+
import { dirname as dirname4, join as join4 } from "path";
|
|
5803
5803
|
var TAILWIND_CANDIDATE_EXTENSION_PATTERN, isTailwindCandidate = (filePath) => TAILWIND_CANDIDATE_EXTENSION_PATTERN.test(filePath), compileTailwind = async (input, output, buildPath, styleTransformConfig) => {
|
|
5804
|
-
const outputPath =
|
|
5804
|
+
const outputPath = join4(buildPath, output);
|
|
5805
5805
|
await mkdir(dirname4(outputPath), { recursive: true });
|
|
5806
5806
|
await incrementalTailwindBuild({ input, output }, buildPath, [], styleTransformConfig);
|
|
5807
5807
|
}, compileTailwindConfig = async (tailwind, buildPath, styleTransformConfig) => compileTailwind(tailwind.input, tailwind.output, buildPath, styleTransformConfig);
|
|
@@ -7128,7 +7128,7 @@ var init_islandSsr = __esm(() => {
|
|
|
7128
7128
|
});
|
|
7129
7129
|
|
|
7130
7130
|
// src/build/resolvePackageImport.ts
|
|
7131
|
-
import { resolve as resolve4, join as
|
|
7131
|
+
import { resolve as resolve4, join as join5 } from "path";
|
|
7132
7132
|
import { existsSync as existsSync5, readFileSync as readFileSync5 } from "fs";
|
|
7133
7133
|
var resolveExportPath = (entry, conditions) => {
|
|
7134
7134
|
if (typeof entry === "string")
|
|
@@ -7154,7 +7154,7 @@ var resolveExportPath = (entry, conditions) => {
|
|
|
7154
7154
|
const currentPackageJson = existsSync5(currentPackageJsonPath) ? JSON.parse(readFileSync5(currentPackageJsonPath, "utf-8")) : null;
|
|
7155
7155
|
const currentPackageDir = currentPackageJson?.name === packageName ? process.cwd() : null;
|
|
7156
7156
|
const packageDir = currentPackageDir ?? resolve4(process.cwd(), "node_modules", packageName ?? "");
|
|
7157
|
-
const packageJsonPath =
|
|
7157
|
+
const packageJsonPath = join5(packageDir, "package.json");
|
|
7158
7158
|
if (!existsSync5(packageJsonPath))
|
|
7159
7159
|
return null;
|
|
7160
7160
|
try {
|
|
@@ -7308,13 +7308,13 @@ var init_lowerAwaitSlotSyntax = __esm(() => {
|
|
|
7308
7308
|
|
|
7309
7309
|
// src/core/svelteServerModule.ts
|
|
7310
7310
|
import { mkdir as mkdir2, readdir } from "fs/promises";
|
|
7311
|
-
import { basename, dirname as dirname5, extname as extname2, join as
|
|
7311
|
+
import { basename, dirname as dirname5, extname as extname2, join as join6, relative as relative2, resolve as resolve5 } from "path";
|
|
7312
7312
|
var serverCacheRoot, compiledModuleCache, originalSourcePathCache, transpiler, ensureRelativeImportPath = (from, target) => {
|
|
7313
7313
|
const importPath = relative2(dirname5(from), target).replace(/\\/g, "/");
|
|
7314
7314
|
return importPath.startsWith(".") ? importPath : `./${importPath}`;
|
|
7315
7315
|
}, processDirectoryEntries = (entries, dir, targetFileName, stack) => {
|
|
7316
7316
|
for (const entry of entries) {
|
|
7317
|
-
const entryPath =
|
|
7317
|
+
const entryPath = join6(dir, entry.name);
|
|
7318
7318
|
if (entry.isDirectory())
|
|
7319
7319
|
stack.push(entryPath);
|
|
7320
7320
|
if (entry.isFile() && entry.name === targetFileName) {
|
|
@@ -7344,11 +7344,11 @@ var serverCacheRoot, compiledModuleCache, originalSourcePathCache, transpiler, e
|
|
|
7344
7344
|
if (cachedPath !== undefined) {
|
|
7345
7345
|
return cachedPath;
|
|
7346
7346
|
}
|
|
7347
|
-
if (!sourcePath.includes(`${
|
|
7347
|
+
if (!sourcePath.includes(`${join6(process.cwd(), "build")}${process.platform === "win32" ? "" : "/"}`) && !sourcePath.includes("/build/")) {
|
|
7348
7348
|
originalSourcePathCache.set(sourcePath, sourcePath);
|
|
7349
7349
|
return sourcePath;
|
|
7350
7350
|
}
|
|
7351
|
-
const resolvedSourcePath = await findSourceFileByBasename(
|
|
7351
|
+
const resolvedSourcePath = await findSourceFileByBasename(join6(process.cwd(), "src"), normalizeBuiltSvelteFileName(sourcePath));
|
|
7352
7352
|
const nextPath = resolvedSourcePath ?? sourcePath;
|
|
7353
7353
|
originalSourcePathCache.set(sourcePath, nextPath);
|
|
7354
7354
|
return nextPath;
|
|
@@ -7364,11 +7364,11 @@ var serverCacheRoot, compiledModuleCache, originalSourcePathCache, transpiler, e
|
|
|
7364
7364
|
`${basePath}.mjs`,
|
|
7365
7365
|
`${basePath}.cjs`,
|
|
7366
7366
|
`${basePath}.json`,
|
|
7367
|
-
|
|
7368
|
-
|
|
7369
|
-
|
|
7370
|
-
|
|
7371
|
-
|
|
7367
|
+
join6(basePath, "index.ts"),
|
|
7368
|
+
join6(basePath, "index.js"),
|
|
7369
|
+
join6(basePath, "index.mjs"),
|
|
7370
|
+
join6(basePath, "index.cjs"),
|
|
7371
|
+
join6(basePath, "index.json")
|
|
7372
7372
|
];
|
|
7373
7373
|
const existResults = await Promise.all(candidates.map((candidate) => Bun.file(candidate).exists()));
|
|
7374
7374
|
const foundIndex = existResults.indexOf(true);
|
|
@@ -7376,7 +7376,7 @@ var serverCacheRoot, compiledModuleCache, originalSourcePathCache, transpiler, e
|
|
|
7376
7376
|
}, getCachedModulePath = (sourcePath) => {
|
|
7377
7377
|
const relativeSourcePath = relative2(process.cwd(), sourcePath).replace(/\\/g, "/");
|
|
7378
7378
|
const normalizedSourcePath = relativeSourcePath.startsWith("..") ? sourcePath.replace(/[:\\/]/g, "_") : relativeSourcePath;
|
|
7379
|
-
return
|
|
7379
|
+
return join6(serverCacheRoot, `${normalizedSourcePath}.server.js`);
|
|
7380
7380
|
}, resolveSvelteImport = async (spec, from) => {
|
|
7381
7381
|
if (!spec.startsWith(".") && !spec.startsWith("/")) {
|
|
7382
7382
|
const resolved = resolvePackageImport(spec);
|
|
@@ -7477,7 +7477,7 @@ var init_svelteServerModule = __esm(() => {
|
|
|
7477
7477
|
init_lowerIslandSyntax();
|
|
7478
7478
|
init_lowerAwaitSlotSyntax();
|
|
7479
7479
|
init_stylePreprocessor();
|
|
7480
|
-
serverCacheRoot =
|
|
7480
|
+
serverCacheRoot = join6(process.cwd(), ".absolutejs", "islands", "svelte");
|
|
7481
7481
|
compiledModuleCache = new Map;
|
|
7482
7482
|
originalSourcePathCache = new Map;
|
|
7483
7483
|
transpiler = new Bun.Transpiler({
|
|
@@ -7635,7 +7635,7 @@ var init_renderIslandMarkup = __esm(() => {
|
|
|
7635
7635
|
|
|
7636
7636
|
// src/build/islandEntries.ts
|
|
7637
7637
|
import { mkdirSync, rmSync, writeFileSync as writeFileSync2 } from "fs";
|
|
7638
|
-
import { dirname as dirname6, extname as extname3, join as
|
|
7638
|
+
import { dirname as dirname6, extname as extname3, join as join7, relative as relative3, resolve as resolve6 } from "path";
|
|
7639
7639
|
import ts from "typescript";
|
|
7640
7640
|
var frameworks, isRecord4 = (value) => typeof value === "object" && value !== null, resolveRegistryExport = (mod) => {
|
|
7641
7641
|
if (isRecord4(mod.islandRegistry))
|
|
@@ -7868,11 +7868,11 @@ export default component;
|
|
|
7868
7868
|
buildPath,
|
|
7869
7869
|
clientPathMaps = {}
|
|
7870
7870
|
}) => {
|
|
7871
|
-
const generatedRoot =
|
|
7871
|
+
const generatedRoot = join7(buildPath, "_island_entries");
|
|
7872
7872
|
rmSync(generatedRoot, { force: true, recursive: true });
|
|
7873
7873
|
const entries = [];
|
|
7874
7874
|
for (const definition of buildInfo.definitions) {
|
|
7875
|
-
const entryPath =
|
|
7875
|
+
const entryPath = join7(generatedRoot, "islands", definition.framework, `${definition.component}.ts`);
|
|
7876
7876
|
const { buildReference } = definition;
|
|
7877
7877
|
const source = buildReference ? resolveIslandSourcePath(buildInfo.resolvedRegistryPath, buildReference.source) : null;
|
|
7878
7878
|
const compiledSourcePath = source && shouldUseCompiledClientPath(definition.framework, source) ? clientPathMaps[definition.framework]?.get(source) : undefined;
|
|
@@ -8651,7 +8651,7 @@ __export(exports_generateReactIndexes, {
|
|
|
8651
8651
|
});
|
|
8652
8652
|
import { existsSync as existsSync7, mkdirSync as mkdirSync2 } from "fs";
|
|
8653
8653
|
import { readdir as readdir2, rm, writeFile } from "fs/promises";
|
|
8654
|
-
import { basename as basename3, join as
|
|
8654
|
+
import { basename as basename3, join as join8, relative as relative4, resolve as resolve10, sep } from "path";
|
|
8655
8655
|
var {Glob: Glob2 } = globalThis.Bun;
|
|
8656
8656
|
var indexContentCache, resolveDevClientDir = () => {
|
|
8657
8657
|
const projectRoot = process.cwd();
|
|
@@ -8684,8 +8684,8 @@ var indexContentCache, resolveDevClientDir = () => {
|
|
|
8684
8684
|
});
|
|
8685
8685
|
if (staleIndexes.length > 0) {
|
|
8686
8686
|
await Promise.all(staleIndexes.map((indexFile) => {
|
|
8687
|
-
indexContentCache.delete(
|
|
8688
|
-
return rm(
|
|
8687
|
+
indexContentCache.delete(join8(reactIndexesDirectory, indexFile));
|
|
8688
|
+
return rm(join8(reactIndexesDirectory, indexFile), {
|
|
8689
8689
|
force: true
|
|
8690
8690
|
});
|
|
8691
8691
|
}));
|
|
@@ -8968,7 +8968,7 @@ var indexContentCache, resolveDevClientDir = () => {
|
|
|
8968
8968
|
] : []
|
|
8969
8969
|
].join(`
|
|
8970
8970
|
`);
|
|
8971
|
-
const indexPath =
|
|
8971
|
+
const indexPath = join8(reactIndexesDirectory, `${componentName}.tsx`);
|
|
8972
8972
|
const hasher = new Bun.CryptoHasher("md5");
|
|
8973
8973
|
hasher.update(content);
|
|
8974
8974
|
const contentHash = hasher.digest("hex");
|
|
@@ -8982,7 +8982,7 @@ var indexContentCache, resolveDevClientDir = () => {
|
|
|
8982
8982
|
if (!isDev2) {
|
|
8983
8983
|
return;
|
|
8984
8984
|
}
|
|
8985
|
-
const refreshPath =
|
|
8985
|
+
const refreshPath = join8(reactIndexesDirectory, "_refresh.tsx");
|
|
8986
8986
|
if (!existsSync7(refreshPath)) {
|
|
8987
8987
|
await writeFile(refreshPath, `import '${refreshSetupPath}';
|
|
8988
8988
|
import 'react';
|
|
@@ -8993,9 +8993,9 @@ import 'react-dom/client';
|
|
|
8993
8993
|
var init_generateReactIndexes = __esm(() => {
|
|
8994
8994
|
indexContentCache = new Map;
|
|
8995
8995
|
devClientDir = resolveDevClientDir();
|
|
8996
|
-
errorOverlayPath =
|
|
8997
|
-
hmrClientPath =
|
|
8998
|
-
refreshSetupPath =
|
|
8996
|
+
errorOverlayPath = join8(devClientDir, "errorOverlay.ts").replace(/\\/g, "/");
|
|
8997
|
+
hmrClientPath = join8(devClientDir, "hmrClient.ts").replace(/\\/g, "/");
|
|
8998
|
+
refreshSetupPath = join8(devClientDir, "reactRefreshSetup.ts").replace(/\\/g, "/");
|
|
8999
8999
|
});
|
|
9000
9000
|
|
|
9001
9001
|
// src/build/wrapHTMLScript.ts
|
|
@@ -9132,7 +9132,7 @@ var init_scanCssEntryPoints = __esm(() => {
|
|
|
9132
9132
|
|
|
9133
9133
|
// src/utils/imageProcessing.ts
|
|
9134
9134
|
import { existsSync as existsSync10, mkdirSync as mkdirSync3, readFileSync as readFileSync8, writeFileSync as writeFileSync4 } from "fs";
|
|
9135
|
-
import { join as
|
|
9135
|
+
import { join as join9, resolve as resolve11 } from "path";
|
|
9136
9136
|
var DEFAULT_DEVICE_SIZES, DEFAULT_IMAGE_SIZES, DEFAULT_QUALITY, OPTIMIZATION_ENDPOINT = "/_absolute/image", BLUR_DEVIATION = 20, sharpModule = undefined, sharpLoaded = false, sharpWarned = false, snapToSize = (target, sizes) => {
|
|
9137
9137
|
for (const size of sizes) {
|
|
9138
9138
|
if (size >= target)
|
|
@@ -9187,7 +9187,7 @@ var DEFAULT_DEVICE_SIZES, DEFAULT_IMAGE_SIZES, DEFAULT_QUALITY, OPTIMIZATION_END
|
|
|
9187
9187
|
const image2 = config?.imageSizes ?? DEFAULT_IMAGE_SIZES;
|
|
9188
9188
|
return [...device, ...image2].sort((left, right) => left - right);
|
|
9189
9189
|
}, getCacheDir = (buildDir) => {
|
|
9190
|
-
const dir =
|
|
9190
|
+
const dir = join9(buildDir, ".cache", "images");
|
|
9191
9191
|
if (!existsSync10(dir))
|
|
9192
9192
|
mkdirSync3(dir, { recursive: true });
|
|
9193
9193
|
return dir;
|
|
@@ -9244,8 +9244,8 @@ var DEFAULT_DEVICE_SIZES, DEFAULT_IMAGE_SIZES, DEFAULT_QUALITY, OPTIMIZATION_END
|
|
|
9244
9244
|
return toBuffer(buffer);
|
|
9245
9245
|
}
|
|
9246
9246
|
}, readFromCache = (cacheDir, cacheKey) => {
|
|
9247
|
-
const metaPath =
|
|
9248
|
-
const dataPath =
|
|
9247
|
+
const metaPath = join9(cacheDir, `${cacheKey}.meta`);
|
|
9248
|
+
const dataPath = join9(cacheDir, `${cacheKey}.data`);
|
|
9249
9249
|
if (!existsSync10(metaPath) || !existsSync10(dataPath))
|
|
9250
9250
|
return null;
|
|
9251
9251
|
try {
|
|
@@ -9272,8 +9272,8 @@ var DEFAULT_DEVICE_SIZES, DEFAULT_IMAGE_SIZES, DEFAULT_QUALITY, OPTIMIZATION_END
|
|
|
9272
9272
|
return null;
|
|
9273
9273
|
}
|
|
9274
9274
|
}, writeToCache = (cacheDir, cacheKey, buffer, meta) => {
|
|
9275
|
-
const metaPath =
|
|
9276
|
-
const dataPath =
|
|
9275
|
+
const metaPath = join9(cacheDir, `${cacheKey}.meta`);
|
|
9276
|
+
const dataPath = join9(cacheDir, `${cacheKey}.data`);
|
|
9277
9277
|
writeFileSync4(dataPath, buffer);
|
|
9278
9278
|
writeFileSync4(metaPath, JSON.stringify(meta));
|
|
9279
9279
|
};
|
|
@@ -9361,7 +9361,7 @@ var init_optimizeHtmlImages = __esm(() => {
|
|
|
9361
9361
|
// src/cli/scripts/telemetry.ts
|
|
9362
9362
|
import { existsSync as existsSync11, mkdirSync as mkdirSync4, readFileSync as readFileSync9, writeFileSync as writeFileSync5 } from "fs";
|
|
9363
9363
|
import { homedir } from "os";
|
|
9364
|
-
import { join as
|
|
9364
|
+
import { join as join10 } from "path";
|
|
9365
9365
|
var configDir, configPath, getTelemetryConfig = () => {
|
|
9366
9366
|
try {
|
|
9367
9367
|
if (!existsSync11(configPath))
|
|
@@ -9374,14 +9374,14 @@ var configDir, configPath, getTelemetryConfig = () => {
|
|
|
9374
9374
|
}
|
|
9375
9375
|
};
|
|
9376
9376
|
var init_telemetry = __esm(() => {
|
|
9377
|
-
configDir =
|
|
9378
|
-
configPath =
|
|
9377
|
+
configDir = join10(homedir(), ".absolutejs");
|
|
9378
|
+
configPath = join10(configDir, "telemetry.json");
|
|
9379
9379
|
});
|
|
9380
9380
|
|
|
9381
9381
|
// src/cli/telemetryEvent.ts
|
|
9382
9382
|
import { existsSync as existsSync12, readFileSync as readFileSync10 } from "fs";
|
|
9383
9383
|
import { arch, platform } from "os";
|
|
9384
|
-
import { dirname as dirname8, join as
|
|
9384
|
+
import { dirname as dirname8, join as join11, parse } from "path";
|
|
9385
9385
|
var checkCandidate = (candidate) => {
|
|
9386
9386
|
if (!existsSync12(candidate)) {
|
|
9387
9387
|
return null;
|
|
@@ -9401,7 +9401,7 @@ var checkCandidate = (candidate) => {
|
|
|
9401
9401
|
}, findPackageVersion = () => {
|
|
9402
9402
|
let { dir } = import.meta;
|
|
9403
9403
|
while (dir !== parse(dir).root) {
|
|
9404
|
-
const candidate =
|
|
9404
|
+
const candidate = join11(dir, "package.json");
|
|
9405
9405
|
const version = checkCandidate(candidate);
|
|
9406
9406
|
if (version) {
|
|
9407
9407
|
return version;
|
|
@@ -9698,7 +9698,7 @@ var devVendorPaths = null, getDevVendorPaths = () => devVendorPaths, setDevVendo
|
|
|
9698
9698
|
|
|
9699
9699
|
// src/build/angularLinkerPlugin.ts
|
|
9700
9700
|
import { existsSync as existsSync14, mkdirSync as mkdirSync5, readFileSync as readFileSync11, writeFileSync as writeFileSync6 } from "fs";
|
|
9701
|
-
import { dirname as dirname9, join as
|
|
9701
|
+
import { dirname as dirname9, join as join12, relative as relative5, resolve as resolve14 } from "path";
|
|
9702
9702
|
import { createHash as createHash3 } from "crypto";
|
|
9703
9703
|
var CACHE_ROOT, createAngularLinkerPlugin = (linkerJitMode) => ({
|
|
9704
9704
|
name: "angular-linker",
|
|
@@ -9706,7 +9706,7 @@ var CACHE_ROOT, createAngularLinkerPlugin = (linkerJitMode) => ({
|
|
|
9706
9706
|
let needsLinking;
|
|
9707
9707
|
let babelTransform;
|
|
9708
9708
|
let linkerPlugin;
|
|
9709
|
-
const cacheDir =
|
|
9709
|
+
const cacheDir = join12(CACHE_ROOT, linkerJitMode ? "jit" : "aot");
|
|
9710
9710
|
bld.onLoad({ filter: /[\\/]@angular[\\/].*\.m?js$/ }, async (args) => {
|
|
9711
9711
|
const source = await Bun.file(args.path).text();
|
|
9712
9712
|
if (!needsLinking) {
|
|
@@ -9719,7 +9719,7 @@ var CACHE_ROOT, createAngularLinkerPlugin = (linkerJitMode) => ({
|
|
|
9719
9719
|
return;
|
|
9720
9720
|
}
|
|
9721
9721
|
const hash = createHash3("md5").update(source).digest("hex");
|
|
9722
|
-
const cachePath =
|
|
9722
|
+
const cachePath = join12(cacheDir, `${hash}.js`);
|
|
9723
9723
|
if (existsSync14(cachePath)) {
|
|
9724
9724
|
return {
|
|
9725
9725
|
contents: readFileSync11(cachePath, "utf-8"),
|
|
@@ -9799,7 +9799,7 @@ var init_cleanStaleOutputs = __esm(() => {
|
|
|
9799
9799
|
|
|
9800
9800
|
// src/utils/cleanup.ts
|
|
9801
9801
|
import { rm as rm3 } from "fs/promises";
|
|
9802
|
-
import { join as
|
|
9802
|
+
import { join as join13 } from "path";
|
|
9803
9803
|
var cleanup = async ({
|
|
9804
9804
|
angularDir,
|
|
9805
9805
|
reactDir,
|
|
@@ -9807,19 +9807,19 @@ var cleanup = async ({
|
|
|
9807
9807
|
vueDir
|
|
9808
9808
|
}) => {
|
|
9809
9809
|
await Promise.all([
|
|
9810
|
-
angularDir ? rm3(
|
|
9810
|
+
angularDir ? rm3(join13(angularDir, "generated"), {
|
|
9811
9811
|
force: true,
|
|
9812
9812
|
recursive: true
|
|
9813
9813
|
}) : undefined,
|
|
9814
|
-
reactDir ? rm3(
|
|
9814
|
+
reactDir ? rm3(join13(reactDir, "generated"), {
|
|
9815
9815
|
force: true,
|
|
9816
9816
|
recursive: true
|
|
9817
9817
|
}) : undefined,
|
|
9818
|
-
svelteDir ? rm3(
|
|
9818
|
+
svelteDir ? rm3(join13(svelteDir, "generated"), {
|
|
9819
9819
|
force: true,
|
|
9820
9820
|
recursive: true
|
|
9821
9821
|
}) : undefined,
|
|
9822
|
-
vueDir ? rm3(
|
|
9822
|
+
vueDir ? rm3(join13(vueDir, "generated"), {
|
|
9823
9823
|
force: true,
|
|
9824
9824
|
recursive: true
|
|
9825
9825
|
}) : undefined
|
|
@@ -9846,8 +9846,8 @@ var init_commonAncestor = () => {};
|
|
|
9846
9846
|
|
|
9847
9847
|
// src/utils/buildDirectoryLock.ts
|
|
9848
9848
|
import { mkdir as mkdir3, rm as rm4, stat as stat2, writeFile as writeFile4 } from "fs/promises";
|
|
9849
|
-
import { dirname as dirname10, join as
|
|
9850
|
-
var DEFAULT_LOCK_TIMEOUT_MS = 120000, DEFAULT_STALE_LOCK_MS, LOCK_POLL_MS = 250, heldLocks, HELD_LOCKS_ENV = "ABSOLUTE_HELD_BUILD_DIRECTORY_LOCKS", isAlreadyExistsError = (error) => error instanceof Error && ("code" in error) && error.code === "EEXIST", lockPathForBuildDirectory = (buildDirectory) =>
|
|
9849
|
+
import { dirname as dirname10, join as join14 } from "path";
|
|
9850
|
+
var DEFAULT_LOCK_TIMEOUT_MS = 120000, DEFAULT_STALE_LOCK_MS, LOCK_POLL_MS = 250, heldLocks, HELD_LOCKS_ENV = "ABSOLUTE_HELD_BUILD_DIRECTORY_LOCKS", isAlreadyExistsError = (error) => error instanceof Error && ("code" in error) && error.code === "EEXIST", lockPathForBuildDirectory = (buildDirectory) => join14(dirname10(buildDirectory), `.${buildDirectory.split(/[\\/]/).pop()}.lock`), readHeldLockEnv = () => new Set((process.env[HELD_LOCKS_ENV] ?? "").split(`
|
|
9851
9851
|
`).filter((entry) => entry.length > 0)), writeHeldLockEnv = (locks) => {
|
|
9852
9852
|
if (locks.size === 0) {
|
|
9853
9853
|
delete process.env[HELD_LOCKS_ENV];
|
|
@@ -9886,7 +9886,7 @@ var DEFAULT_LOCK_TIMEOUT_MS = 120000, DEFAULT_STALE_LOCK_MS, LOCK_POLL_MS = 250,
|
|
|
9886
9886
|
try {
|
|
9887
9887
|
await mkdir3(dirname10(lockPath), { recursive: true });
|
|
9888
9888
|
await mkdir3(lockPath);
|
|
9889
|
-
await writeFile4(
|
|
9889
|
+
await writeFile4(join14(lockPath, "owner"), JSON.stringify({
|
|
9890
9890
|
buildDirectory,
|
|
9891
9891
|
createdAt: new Date().toISOString(),
|
|
9892
9892
|
pid: process.pid
|
|
@@ -10015,7 +10015,7 @@ import { existsSync as existsSync15 } from "fs";
|
|
|
10015
10015
|
import { mkdir as mkdir4, stat as stat3 } from "fs/promises";
|
|
10016
10016
|
import {
|
|
10017
10017
|
dirname as dirname11,
|
|
10018
|
-
join as
|
|
10018
|
+
join as join15,
|
|
10019
10019
|
basename as basename5,
|
|
10020
10020
|
extname as extname5,
|
|
10021
10021
|
resolve as resolve17,
|
|
@@ -10074,14 +10074,14 @@ var resolveDevClientDir2 = () => {
|
|
|
10074
10074
|
`${basePath}.svelte`,
|
|
10075
10075
|
`${basePath}.svelte.ts`,
|
|
10076
10076
|
`${basePath}.svelte.js`,
|
|
10077
|
-
|
|
10078
|
-
|
|
10079
|
-
|
|
10080
|
-
|
|
10081
|
-
|
|
10082
|
-
|
|
10083
|
-
|
|
10084
|
-
|
|
10077
|
+
join15(basePath, "index.ts"),
|
|
10078
|
+
join15(basePath, "index.js"),
|
|
10079
|
+
join15(basePath, "index.mjs"),
|
|
10080
|
+
join15(basePath, "index.cjs"),
|
|
10081
|
+
join15(basePath, "index.json"),
|
|
10082
|
+
join15(basePath, "index.svelte"),
|
|
10083
|
+
join15(basePath, "index.svelte.ts"),
|
|
10084
|
+
join15(basePath, "index.svelte.js")
|
|
10085
10085
|
];
|
|
10086
10086
|
const checks = await Promise.all(candidates.map(exists));
|
|
10087
10087
|
return candidates.find((_2, index) => checks[index]) ?? null;
|
|
@@ -10119,10 +10119,10 @@ var resolveDevClientDir2 = () => {
|
|
|
10119
10119
|
});
|
|
10120
10120
|
}, compileSvelte = async (entryPoints, svelteRoot, cache = new Map, isDev2 = false, stylePreprocessors) => {
|
|
10121
10121
|
const { compile, compileModule, preprocess } = await import("svelte/compiler");
|
|
10122
|
-
const generatedDir =
|
|
10123
|
-
const clientDir =
|
|
10124
|
-
const indexDir =
|
|
10125
|
-
const serverDir =
|
|
10122
|
+
const generatedDir = join15(svelteRoot, "generated");
|
|
10123
|
+
const clientDir = join15(generatedDir, "client");
|
|
10124
|
+
const indexDir = join15(generatedDir, "indexes");
|
|
10125
|
+
const serverDir = join15(generatedDir, "server");
|
|
10126
10126
|
await Promise.all([clientDir, indexDir, serverDir].map((dir) => mkdir4(dir, { recursive: true })));
|
|
10127
10127
|
const dev = env2.NODE_ENV !== "production";
|
|
10128
10128
|
const build2 = async (src) => {
|
|
@@ -10160,8 +10160,8 @@ var resolveDevClientDir2 = () => {
|
|
|
10160
10160
|
const childBuilt = await Promise.all(childSources.map((child) => build2(child)));
|
|
10161
10161
|
const hasAwaitSlotFromChildren = childBuilt.some((child) => child.hasAwaitSlot);
|
|
10162
10162
|
const externalRewrites = new Map;
|
|
10163
|
-
const ssrOutputDir = dirname11(
|
|
10164
|
-
const clientOutputDir = dirname11(
|
|
10163
|
+
const ssrOutputDir = dirname11(join15(serverDir, relDir, `${baseName}.js`));
|
|
10164
|
+
const clientOutputDir = dirname11(join15(clientDir, relDir, `${baseName}.js`));
|
|
10165
10165
|
for (let idx = 0;idx < importPaths.length; idx++) {
|
|
10166
10166
|
const rawSpec = importPaths[idx];
|
|
10167
10167
|
if (!rawSpec)
|
|
@@ -10226,8 +10226,8 @@ var resolveDevClientDir2 = () => {
|
|
|
10226
10226
|
code += islandMetadataExports;
|
|
10227
10227
|
return code;
|
|
10228
10228
|
};
|
|
10229
|
-
const ssrPath =
|
|
10230
|
-
const clientPath =
|
|
10229
|
+
const ssrPath = join15(serverDir, relDir, `${baseName}.js`);
|
|
10230
|
+
const clientPath = join15(clientDir, relDir, `${baseName}.js`);
|
|
10231
10231
|
await Promise.all([
|
|
10232
10232
|
mkdir4(dirname11(ssrPath), { recursive: true }),
|
|
10233
10233
|
mkdir4(dirname11(clientPath), { recursive: true })
|
|
@@ -10259,7 +10259,7 @@ var resolveDevClientDir2 = () => {
|
|
|
10259
10259
|
await Promise.all(roots.map(async ({ client: client2, hasAwaitSlot }) => {
|
|
10260
10260
|
const relClientDir = dirname11(relative7(clientDir, client2));
|
|
10261
10261
|
const name = basename5(client2, extname5(client2));
|
|
10262
|
-
const indexPath =
|
|
10262
|
+
const indexPath = join15(indexDir, relClientDir, `${name}.js`);
|
|
10263
10263
|
const importRaw = relative7(dirname11(indexPath), client2).split(sep2).join("/");
|
|
10264
10264
|
const importPath = importRaw.startsWith(".") || importRaw.startsWith("/") ? importRaw : `./${importRaw}`;
|
|
10265
10265
|
const hmrImports = isDev2 ? `window.__HMR_FRAMEWORK__ = "svelte";
|
|
@@ -10338,7 +10338,7 @@ if (typeof window !== "undefined") {
|
|
|
10338
10338
|
svelteClientPaths: roots.map(({ client: client2 }) => client2),
|
|
10339
10339
|
svelteIndexPaths: roots.map(({ client: client2 }) => {
|
|
10340
10340
|
const rel = dirname11(relative7(clientDir, client2));
|
|
10341
|
-
return
|
|
10341
|
+
return join15(indexDir, rel, basename5(client2));
|
|
10342
10342
|
}),
|
|
10343
10343
|
svelteServerPaths: roots.map(({ ssr }) => ssr)
|
|
10344
10344
|
};
|
|
@@ -10352,7 +10352,7 @@ var init_compileSvelte = __esm(() => {
|
|
|
10352
10352
|
init_lowerAwaitSlotSyntax();
|
|
10353
10353
|
init_renderToReadableStream();
|
|
10354
10354
|
devClientDir2 = resolveDevClientDir2();
|
|
10355
|
-
hmrClientPath3 =
|
|
10355
|
+
hmrClientPath3 = join15(devClientDir2, "hmrClient.ts").replace(/\\/g, "/");
|
|
10356
10356
|
persistentCache = new Map;
|
|
10357
10357
|
sourceHashCache = new Map;
|
|
10358
10358
|
transpiler2 = new Transpiler({ loader: "ts", target: "browser" });
|
|
@@ -10373,7 +10373,7 @@ import {
|
|
|
10373
10373
|
basename as basename6,
|
|
10374
10374
|
dirname as dirname12,
|
|
10375
10375
|
isAbsolute as isAbsolute3,
|
|
10376
|
-
join as
|
|
10376
|
+
join as join16,
|
|
10377
10377
|
relative as relative8,
|
|
10378
10378
|
resolve as resolve18
|
|
10379
10379
|
} from "path";
|
|
@@ -10543,7 +10543,7 @@ var resolveDevClientDir3 = () => {
|
|
|
10543
10543
|
];
|
|
10544
10544
|
let cssOutputPaths = [];
|
|
10545
10545
|
if (isEntryPoint && allCss.length) {
|
|
10546
|
-
const cssOutputFile =
|
|
10546
|
+
const cssOutputFile = join16(outputDirs.css, `${toKebab(fileBaseName)}-compiled.css`);
|
|
10547
10547
|
await mkdir5(dirname12(cssOutputFile), { recursive: true });
|
|
10548
10548
|
await write2(cssOutputFile, allCss.join(`
|
|
10549
10549
|
`));
|
|
@@ -10574,8 +10574,8 @@ if (typeof __VUE_HMR_RUNTIME__ !== 'undefined') {
|
|
|
10574
10574
|
};
|
|
10575
10575
|
const clientCode = assembleModule(generateRenderFunction(false), "render", true) + islandMetadataExports;
|
|
10576
10576
|
const serverCode = assembleModule(generateRenderFunction(true), "ssrRender", false) + islandMetadataExports;
|
|
10577
|
-
const clientOutputPath =
|
|
10578
|
-
const serverOutputPath =
|
|
10577
|
+
const clientOutputPath = join16(outputDirs.client, `${relativeWithoutExtension}.js`);
|
|
10578
|
+
const serverOutputPath = join16(outputDirs.server, `${relativeWithoutExtension}.js`);
|
|
10579
10579
|
const relDir = dirname12(relativeFilePath);
|
|
10580
10580
|
const relDepth = relDir === "." ? 0 : relDir.split("/").length;
|
|
10581
10581
|
const adjustImports = (code) => code.replace(/(from\s+['"])(\.\.\/(?:\.\.\/)*)/g, (_2, prefix, dots) => {
|
|
@@ -10615,11 +10615,11 @@ if (typeof __VUE_HMR_RUNTIME__ !== 'undefined') {
|
|
|
10615
10615
|
return result;
|
|
10616
10616
|
}, compileVue = async (entryPoints, vueRootDir, isDev2 = false, stylePreprocessors) => {
|
|
10617
10617
|
const compiler = await import("@vue/compiler-sfc");
|
|
10618
|
-
const generatedDir =
|
|
10619
|
-
const clientOutputDir =
|
|
10620
|
-
const indexOutputDir =
|
|
10621
|
-
const serverOutputDir =
|
|
10622
|
-
const cssOutputDir =
|
|
10618
|
+
const generatedDir = join16(vueRootDir, "generated");
|
|
10619
|
+
const clientOutputDir = join16(generatedDir, "client");
|
|
10620
|
+
const indexOutputDir = join16(generatedDir, "indexes");
|
|
10621
|
+
const serverOutputDir = join16(generatedDir, "server");
|
|
10622
|
+
const cssOutputDir = join16(generatedDir, "compiled");
|
|
10623
10623
|
await Promise.all([
|
|
10624
10624
|
mkdir5(clientOutputDir, { recursive: true }),
|
|
10625
10625
|
mkdir5(indexOutputDir, { recursive: true }),
|
|
@@ -10636,8 +10636,8 @@ if (typeof __VUE_HMR_RUNTIME__ !== 'undefined') {
|
|
|
10636
10636
|
}, buildCache, true, vueRootDir, compiler, stylePreprocessors);
|
|
10637
10637
|
result.tsHelperPaths.forEach((path) => allTsHelperPaths.add(path));
|
|
10638
10638
|
const entryBaseName = basename6(entryPath, ".vue");
|
|
10639
|
-
const indexOutputFile =
|
|
10640
|
-
const clientOutputFile =
|
|
10639
|
+
const indexOutputFile = join16(indexOutputDir, `${entryBaseName}.js`);
|
|
10640
|
+
const clientOutputFile = join16(clientOutputDir, relative8(vueRootDir, entryPath).replace(/\\/g, "/").replace(/\.vue$/, ".js"));
|
|
10641
10641
|
await mkdir5(dirname12(indexOutputFile), { recursive: true });
|
|
10642
10642
|
const vueHmrImports = isDev2 ? [
|
|
10643
10643
|
`window.__HMR_FRAMEWORK__ = "vue";`,
|
|
@@ -10780,8 +10780,8 @@ if (typeof __VUE_HMR_RUNTIME__ !== 'undefined') {
|
|
|
10780
10780
|
const sourceCode = await file3(tsPath).text();
|
|
10781
10781
|
const transpiledCode = transpiler3.transformSync(sourceCode);
|
|
10782
10782
|
const relativeJsPath = relative8(vueRootDir, tsPath).replace(/\.ts$/, ".js");
|
|
10783
|
-
const outClientPath =
|
|
10784
|
-
const outServerPath =
|
|
10783
|
+
const outClientPath = join16(clientOutputDir, relativeJsPath);
|
|
10784
|
+
const outServerPath = join16(serverOutputDir, relativeJsPath);
|
|
10785
10785
|
await mkdir5(dirname12(outClientPath), { recursive: true });
|
|
10786
10786
|
await mkdir5(dirname12(outServerPath), { recursive: true });
|
|
10787
10787
|
await write2(outClientPath, transpiledCode);
|
|
@@ -10801,7 +10801,7 @@ var init_compileVue = __esm(() => {
|
|
|
10801
10801
|
init_sourceMetadata();
|
|
10802
10802
|
init_stylePreprocessor();
|
|
10803
10803
|
devClientDir3 = resolveDevClientDir3();
|
|
10804
|
-
hmrClientPath4 =
|
|
10804
|
+
hmrClientPath4 = join16(devClientDir3, "hmrClient.ts").replace(/\\/g, "/");
|
|
10805
10805
|
transpiler3 = new Transpiler2({ loader: "ts", target: "browser" });
|
|
10806
10806
|
scriptCache = new Map;
|
|
10807
10807
|
scriptSetupCache = new Map;
|
|
@@ -11282,7 +11282,7 @@ __export(exports_compileAngular, {
|
|
|
11282
11282
|
compileAngular: () => compileAngular
|
|
11283
11283
|
});
|
|
11284
11284
|
import { existsSync as existsSync17, readFileSync as readFileSync12, promises as fs } from "fs";
|
|
11285
|
-
import { join as
|
|
11285
|
+
import { join as join17, basename as basename7, sep as sep3, dirname as dirname13, resolve as resolve19, relative as relative9 } from "path";
|
|
11286
11286
|
import ts2 from "typescript";
|
|
11287
11287
|
var traceAngularPhase = async (name, fn2, metadata2) => {
|
|
11288
11288
|
const tracePhase = globalThis.__absoluteBuildTracePhase;
|
|
@@ -11324,10 +11324,10 @@ var traceAngularPhase = async (name, fn2, metadata2) => {
|
|
|
11324
11324
|
`${candidate}.tsx`,
|
|
11325
11325
|
`${candidate}.js`,
|
|
11326
11326
|
`${candidate}.jsx`,
|
|
11327
|
-
|
|
11328
|
-
|
|
11329
|
-
|
|
11330
|
-
|
|
11327
|
+
join17(candidate, "index.ts"),
|
|
11328
|
+
join17(candidate, "index.tsx"),
|
|
11329
|
+
join17(candidate, "index.js"),
|
|
11330
|
+
join17(candidate, "index.jsx")
|
|
11331
11331
|
];
|
|
11332
11332
|
return candidates.find((file4) => existsSync17(file4));
|
|
11333
11333
|
}, createLegacyAngularAnimationUsageResolver = (rootDir) => {
|
|
@@ -11503,10 +11503,10 @@ ${registrations}
|
|
|
11503
11503
|
`${basePath}.tsx`,
|
|
11504
11504
|
`${basePath}.mts`,
|
|
11505
11505
|
`${basePath}.cts`,
|
|
11506
|
-
|
|
11507
|
-
|
|
11508
|
-
|
|
11509
|
-
|
|
11506
|
+
join17(basePath, "index.ts"),
|
|
11507
|
+
join17(basePath, "index.tsx"),
|
|
11508
|
+
join17(basePath, "index.mts"),
|
|
11509
|
+
join17(basePath, "index.cts")
|
|
11510
11510
|
];
|
|
11511
11511
|
return candidates.map((candidate) => resolve19(candidate)).find((candidate) => existsSync17(candidate) && !candidate.endsWith(".d.ts")) ?? null;
|
|
11512
11512
|
}, readFileForAotTransform = async (fileName, readFile5) => {
|
|
@@ -11532,15 +11532,15 @@ ${registrations}
|
|
|
11532
11532
|
const paths = [];
|
|
11533
11533
|
const templateUrlMatch = findUncommentedMatch(source, /templateUrl\s*:\s*['"]([^'"]+)['"]/);
|
|
11534
11534
|
if (templateUrlMatch?.[1])
|
|
11535
|
-
paths.push(
|
|
11535
|
+
paths.push(join17(fileDir, templateUrlMatch[1]));
|
|
11536
11536
|
const styleUrlMatch = findUncommentedMatch(source, /styleUrl\s*:\s*['"]([^'"]+)['"]/);
|
|
11537
11537
|
if (styleUrlMatch?.[1])
|
|
11538
|
-
paths.push(
|
|
11538
|
+
paths.push(join17(fileDir, styleUrlMatch[1]));
|
|
11539
11539
|
const styleUrlsMatch = findUncommentedMatch(source, /styleUrls\s*:\s*\[([^\]]+)\]/);
|
|
11540
11540
|
const urlMatches = styleUrlsMatch?.[1]?.match(/['"]([^'"]+)['"]/g);
|
|
11541
11541
|
if (urlMatches) {
|
|
11542
11542
|
for (const urlMatch of urlMatches) {
|
|
11543
|
-
paths.push(
|
|
11543
|
+
paths.push(join17(fileDir, urlMatch.replace(/['"]/g, "")));
|
|
11544
11544
|
}
|
|
11545
11545
|
}
|
|
11546
11546
|
return paths.map((path) => resolve19(path));
|
|
@@ -11574,7 +11574,7 @@ ${registrations}
|
|
|
11574
11574
|
safeStableStringify(stylePreprocessors ?? null)
|
|
11575
11575
|
].join("\x00");
|
|
11576
11576
|
const cacheKey2 = Bun.hash(cacheInput).toString(BASE_36_RADIX);
|
|
11577
|
-
return
|
|
11577
|
+
return join17(process.cwd(), ".absolutejs", "cache", "angular-resources", `${cacheKey2}.json`);
|
|
11578
11578
|
}, precomputeAotResourceTransforms = async (inputPaths, readFile5, stylePreprocessors) => {
|
|
11579
11579
|
const transformedSources = new Map;
|
|
11580
11580
|
const visited = new Set;
|
|
@@ -11620,7 +11620,7 @@ ${registrations}
|
|
|
11620
11620
|
return { stats, transformedSources };
|
|
11621
11621
|
}, compileAngularFiles = async (inputPaths, outDir, stylePreprocessors) => {
|
|
11622
11622
|
const islandMetadataByOutputPath = await traceAngularPhase("aot/island-metadata", () => new Map(inputPaths.map((inputPath) => {
|
|
11623
|
-
const outputPath = resolve19(
|
|
11623
|
+
const outputPath = resolve19(join17(outDir, relative9(process.cwd(), resolve19(inputPath)).replace(/\.[cm]?[tj]sx?$/, ".js")));
|
|
11624
11624
|
return [
|
|
11625
11625
|
outputPath,
|
|
11626
11626
|
buildIslandMetadataExports(readFileSync12(inputPath, "utf-8"))
|
|
@@ -11667,7 +11667,7 @@ ${registrations}
|
|
|
11667
11667
|
const originalGetSourceFile = host.getSourceFile;
|
|
11668
11668
|
host.getSourceFile = (fileName, languageVersion, onError) => {
|
|
11669
11669
|
if (fileName.startsWith("lib.") && fileName.endsWith(".d.ts") && tsLibDir) {
|
|
11670
|
-
const resolvedPath =
|
|
11670
|
+
const resolvedPath = join17(tsLibDir, fileName);
|
|
11671
11671
|
return originalGetSourceFile?.call(host, resolvedPath, languageVersion, onError);
|
|
11672
11672
|
}
|
|
11673
11673
|
return originalGetSourceFile?.call(host, fileName, languageVersion, onError);
|
|
@@ -11722,7 +11722,7 @@ ${registrations}
|
|
|
11722
11722
|
const entries = await traceAngularPhase("aot/postprocess-emitted-js", () => {
|
|
11723
11723
|
const rawEntries = Object.entries(emitted).filter(([fileName]) => fileName.endsWith(".js")).map(([fileName, content]) => ({
|
|
11724
11724
|
content,
|
|
11725
|
-
target:
|
|
11725
|
+
target: join17(outDir, fileName)
|
|
11726
11726
|
}));
|
|
11727
11727
|
const outputFiles = new Set(rawEntries.map(({ target }) => resolve19(target)));
|
|
11728
11728
|
return rawEntries.map(({ content, target }) => {
|
|
@@ -11897,7 +11897,7 @@ ${fields}
|
|
|
11897
11897
|
}, inlineTemplateAndLowerDefer = async (source, fileDir) => {
|
|
11898
11898
|
const templateUrlMatch = findUncommentedMatch(source, /templateUrl\s*:\s*['"]([^'"]+)['"]/);
|
|
11899
11899
|
if (templateUrlMatch?.[1]) {
|
|
11900
|
-
const templatePath =
|
|
11900
|
+
const templatePath = join17(fileDir, templateUrlMatch[1]);
|
|
11901
11901
|
if (!existsSync17(templatePath)) {
|
|
11902
11902
|
throw new Error(`Unable to inline Angular templateUrl "${templateUrlMatch[1]}": file not found at ${templatePath}`);
|
|
11903
11903
|
}
|
|
@@ -11928,7 +11928,7 @@ ${fields}
|
|
|
11928
11928
|
}, inlineTemplateAndLowerDeferSync = (source, fileDir) => {
|
|
11929
11929
|
const templateUrlMatch = findUncommentedMatch(source, /templateUrl\s*:\s*['"]([^'"]+)['"]/);
|
|
11930
11930
|
if (templateUrlMatch?.[1]) {
|
|
11931
|
-
const templatePath =
|
|
11931
|
+
const templatePath = join17(fileDir, templateUrlMatch[1]);
|
|
11932
11932
|
if (!existsSync17(templatePath)) {
|
|
11933
11933
|
throw new Error(`Unable to inline Angular templateUrl "${templateUrlMatch[1]}": file not found at ${templatePath}`);
|
|
11934
11934
|
}
|
|
@@ -11965,7 +11965,7 @@ ${fields}
|
|
|
11965
11965
|
return source;
|
|
11966
11966
|
const stylePromises = urlMatches.map((urlMatch) => {
|
|
11967
11967
|
const styleUrl = urlMatch.replace(/['"]/g, "");
|
|
11968
|
-
return readAndEscapeFile(
|
|
11968
|
+
return readAndEscapeFile(join17(fileDir, styleUrl), stylePreprocessors);
|
|
11969
11969
|
});
|
|
11970
11970
|
const results = await Promise.all(stylePromises);
|
|
11971
11971
|
const inlinedStyles = results.filter(Boolean).map((escaped) => `\`${escaped}\``);
|
|
@@ -11976,7 +11976,7 @@ ${fields}
|
|
|
11976
11976
|
const styleUrlMatch = findUncommentedMatch(source, /styleUrl\s*:\s*['"]([^'"]+)['"]/);
|
|
11977
11977
|
if (!styleUrlMatch?.[1])
|
|
11978
11978
|
return source;
|
|
11979
|
-
const escaped = await readAndEscapeFile(
|
|
11979
|
+
const escaped = await readAndEscapeFile(join17(fileDir, styleUrlMatch[1]), stylePreprocessors);
|
|
11980
11980
|
if (!escaped)
|
|
11981
11981
|
return source;
|
|
11982
11982
|
return source.slice(0, styleUrlMatch.index) + `styles: [\`${escaped}\`]` + source.slice(styleUrlMatch.index + styleUrlMatch[0].length);
|
|
@@ -12011,10 +12011,10 @@ ${fields}
|
|
|
12011
12011
|
`${candidate}.tsx`,
|
|
12012
12012
|
`${candidate}.js`,
|
|
12013
12013
|
`${candidate}.jsx`,
|
|
12014
|
-
|
|
12015
|
-
|
|
12016
|
-
|
|
12017
|
-
|
|
12014
|
+
join17(candidate, "index.ts"),
|
|
12015
|
+
join17(candidate, "index.tsx"),
|
|
12016
|
+
join17(candidate, "index.js"),
|
|
12017
|
+
join17(candidate, "index.jsx")
|
|
12018
12018
|
];
|
|
12019
12019
|
return candidates.find((file4) => existsSync17(file4));
|
|
12020
12020
|
};
|
|
@@ -12041,7 +12041,7 @@ ${fields}
|
|
|
12041
12041
|
const inputDir = dirname13(sourcePath);
|
|
12042
12042
|
const relativeDir = inputDir.startsWith(baseDir) ? inputDir.substring(baseDir.length + 1) : inputDir;
|
|
12043
12043
|
const fileBase = basename7(sourcePath).replace(/\.[cm]?[tj]sx?$/, ".js");
|
|
12044
|
-
return
|
|
12044
|
+
return join17(outDir, relativeDir, fileBase);
|
|
12045
12045
|
};
|
|
12046
12046
|
const transpileAndRewrite = (sourceCode, relativeDir, actualPath, importRewrites) => {
|
|
12047
12047
|
let processedContent = angularTranspiler.transformSync(sourceCode);
|
|
@@ -12094,7 +12094,7 @@ ${fields}
|
|
|
12094
12094
|
const inputDir = dirname13(actualPath);
|
|
12095
12095
|
const relativeDir = inputDir.startsWith(baseDir) ? inputDir.substring(baseDir.length + 1) : inputDir;
|
|
12096
12096
|
const fileBase = basename7(actualPath).replace(/\.[cm]?[tj]sx?$/, ".js");
|
|
12097
|
-
const targetDir =
|
|
12097
|
+
const targetDir = join17(outDir, relativeDir);
|
|
12098
12098
|
const targetPath = toOutputPath(actualPath);
|
|
12099
12099
|
const localImports = [];
|
|
12100
12100
|
const importRewrites = new Map;
|
|
@@ -12148,13 +12148,13 @@ export const __ABSOLUTE_PAGE_USES_LEGACY_ANIMATIONS__ = true;
|
|
|
12148
12148
|
}
|
|
12149
12149
|
return allOutputs;
|
|
12150
12150
|
}, compileAngular = async (entryPoints, outRoot, hmr = false, stylePreprocessors) => {
|
|
12151
|
-
const compiledParent =
|
|
12151
|
+
const compiledParent = join17(outRoot, "generated");
|
|
12152
12152
|
if (entryPoints.length === 0) {
|
|
12153
12153
|
const emptyPaths = [];
|
|
12154
12154
|
return { clientPaths: [...emptyPaths], serverPaths: [...emptyPaths] };
|
|
12155
12155
|
}
|
|
12156
12156
|
const compiledRoot = compiledParent;
|
|
12157
|
-
const indexesDir =
|
|
12157
|
+
const indexesDir = join17(compiledParent, "indexes");
|
|
12158
12158
|
await traceAngularPhase("setup/create-indexes-dir", () => fs.mkdir(indexesDir, { recursive: true }));
|
|
12159
12159
|
const aotOutputs = hmr ? [] : await traceAngularPhase("aot/compile-files", () => compileAngularFiles(entryPoints.map((entry) => resolve19(entry)), compiledRoot, stylePreprocessors), { entries: entryPoints.length });
|
|
12160
12160
|
const usesLegacyAngularAnimations = await traceAngularPhase("setup/legacy-animation-resolver", () => createLegacyAngularAnimationUsageResolver(outRoot));
|
|
@@ -12168,9 +12168,9 @@ export const __ABSOLUTE_PAGE_USES_LEGACY_ANIMATIONS__ = true;
|
|
|
12168
12168
|
const fileBase = basename7(resolvedEntry).replace(/\.[tj]s$/, "");
|
|
12169
12169
|
const jsName = `${fileBase}.js`;
|
|
12170
12170
|
const compiledFallbackPaths = [
|
|
12171
|
-
|
|
12172
|
-
|
|
12173
|
-
|
|
12171
|
+
join17(compiledRoot, relativeEntry),
|
|
12172
|
+
join17(compiledRoot, "pages", jsName),
|
|
12173
|
+
join17(compiledRoot, jsName)
|
|
12174
12174
|
].map((file4) => resolve19(file4));
|
|
12175
12175
|
const resolveRawServerFile = (candidatePaths) => {
|
|
12176
12176
|
const normalizedCandidates = [
|
|
@@ -12214,7 +12214,7 @@ export const __ABSOLUTE_PAGE_USES_LEGACY_ANIMATIONS__ = true;
|
|
|
12214
12214
|
const usesLegacyAnimations = await traceAngularPhase("wrapper/detect-legacy-animations", () => usesLegacyAngularAnimations(resolvedEntry), { entry: resolvedEntry });
|
|
12215
12215
|
const serverContentHash = Bun.hash(original).toString(BASE_36_RADIX);
|
|
12216
12216
|
const cachedWrapper = wrapperOutputCache.get(resolvedEntry);
|
|
12217
|
-
const clientFile =
|
|
12217
|
+
const clientFile = join17(indexesDir, jsName);
|
|
12218
12218
|
if (hmr && cachedWrapper && cachedWrapper.serverHash === serverContentHash && existsSync17(clientFile) && (usesLegacyAnimations || !original.includes("__ABSOLUTE_PAGE_USES_LEGACY_ANIMATIONS__")) && (!usesLegacyAnimations || original.includes("__ABSOLUTE_PAGE_USES_LEGACY_ANIMATIONS__"))) {
|
|
12219
12219
|
return {
|
|
12220
12220
|
clientPath: clientFile,
|
|
@@ -12450,8 +12450,8 @@ var init_compileAngular = __esm(() => {
|
|
|
12450
12450
|
init_lowerDeferSyntax();
|
|
12451
12451
|
init_stylePreprocessor();
|
|
12452
12452
|
devClientDir4 = resolveDevClientDir4();
|
|
12453
|
-
hmrClientPath5 =
|
|
12454
|
-
hmrRuntimePath =
|
|
12453
|
+
hmrClientPath5 = join17(devClientDir4, "hmrClient.ts").replace(/\\/g, "/");
|
|
12454
|
+
hmrRuntimePath = join17(devClientDir4, "handlers", "angularRuntime.ts").replace(/\\/g, "/");
|
|
12455
12455
|
jitContentCache = new Map;
|
|
12456
12456
|
wrapperOutputCache = new Map;
|
|
12457
12457
|
});
|
|
@@ -12463,7 +12463,7 @@ __export(exports_buildReactVendor, {
|
|
|
12463
12463
|
buildReactVendor: () => buildReactVendor
|
|
12464
12464
|
});
|
|
12465
12465
|
import { existsSync as existsSync18, mkdirSync as mkdirSync6 } from "fs";
|
|
12466
|
-
import { join as
|
|
12466
|
+
import { join as join18, resolve as resolve20 } from "path";
|
|
12467
12467
|
import { rm as rm5 } from "fs/promises";
|
|
12468
12468
|
var {build: bunBuild2 } = globalThis.Bun;
|
|
12469
12469
|
var resolveJsxDevRuntimeCompatPath = () => {
|
|
@@ -12517,14 +12517,14 @@ var resolveJsxDevRuntimeCompatPath = () => {
|
|
|
12517
12517
|
`)}
|
|
12518
12518
|
`;
|
|
12519
12519
|
}, buildReactVendor = async (buildDir) => {
|
|
12520
|
-
const vendorDir =
|
|
12520
|
+
const vendorDir = join18(buildDir, "react", "vendor");
|
|
12521
12521
|
mkdirSync6(vendorDir, { recursive: true });
|
|
12522
|
-
const tmpDir =
|
|
12522
|
+
const tmpDir = join18(buildDir, "_vendor_tmp");
|
|
12523
12523
|
mkdirSync6(tmpDir, { recursive: true });
|
|
12524
12524
|
const specifiers = resolveVendorSpecifiers();
|
|
12525
12525
|
const entrypoints = await Promise.all(specifiers.map(async (specifier) => {
|
|
12526
12526
|
const safeName = toSafeFileName(specifier);
|
|
12527
|
-
const entryPath =
|
|
12527
|
+
const entryPath = join18(tmpDir, `${safeName}.ts`);
|
|
12528
12528
|
const source = await generateEntrySource(specifier);
|
|
12529
12529
|
await Bun.write(entryPath, source);
|
|
12530
12530
|
return entryPath;
|
|
@@ -12572,7 +12572,7 @@ __export(exports_buildAngularVendor, {
|
|
|
12572
12572
|
buildAngularServerVendor: () => buildAngularServerVendor
|
|
12573
12573
|
});
|
|
12574
12574
|
import { mkdirSync as mkdirSync7 } from "fs";
|
|
12575
|
-
import { join as
|
|
12575
|
+
import { join as join19 } from "path";
|
|
12576
12576
|
import { rm as rm6 } from "fs/promises";
|
|
12577
12577
|
var {build: bunBuild3, Glob: Glob6 } = globalThis.Bun;
|
|
12578
12578
|
var REQUIRED_ANGULAR_SPECIFIERS_BASE, requiredAngularSpecifiers = (jitMode) => jitMode ? [...REQUIRED_ANGULAR_SPECIFIERS_BASE, "@angular/compiler"] : REQUIRED_ANGULAR_SPECIFIERS_BASE, SERVER_ONLY_ANGULAR_SPECIFIERS, BUILD_ONLY_ANGULAR_SPECIFIER_PREFIXES, isBuildOnlyAngularSpecifier = (spec) => BUILD_ONLY_ANGULAR_SPECIFIER_PREFIXES.some((prefix) => spec === prefix || spec.startsWith(`${prefix}/`)), SCAN_SKIP_DIRS, isResolvable2 = (specifier) => {
|
|
@@ -12669,14 +12669,14 @@ var REQUIRED_ANGULAR_SPECIFIERS_BASE, requiredAngularSpecifiers = (jitMode) => j
|
|
|
12669
12669
|
await collectTransitiveAngularSpecs([...angular, ...transitiveRoots], angular);
|
|
12670
12670
|
return Array.from(angular).filter(isResolvable2);
|
|
12671
12671
|
}, buildAngularVendor = async (buildDir, directories = [], linkerJitMode = false, depVendorSpecifiers = []) => {
|
|
12672
|
-
const vendorDir =
|
|
12672
|
+
const vendorDir = join19(buildDir, "angular", "vendor");
|
|
12673
12673
|
mkdirSync7(vendorDir, { recursive: true });
|
|
12674
|
-
const tmpDir =
|
|
12674
|
+
const tmpDir = join19(buildDir, "_angular_vendor_tmp");
|
|
12675
12675
|
mkdirSync7(tmpDir, { recursive: true });
|
|
12676
12676
|
const specifiers = await resolveAngularSpecifiers(directories, linkerJitMode);
|
|
12677
12677
|
const entrypoints = await Promise.all(specifiers.map(async (specifier) => {
|
|
12678
12678
|
const safeName = toSafeFileName2(specifier);
|
|
12679
|
-
const entryPath =
|
|
12679
|
+
const entryPath = join19(tmpDir, `${safeName}.ts`);
|
|
12680
12680
|
await Bun.write(entryPath, generateVendorEntrySource(specifier));
|
|
12681
12681
|
return entryPath;
|
|
12682
12682
|
}));
|
|
@@ -12707,9 +12707,9 @@ var REQUIRED_ANGULAR_SPECIFIERS_BASE, requiredAngularSpecifiers = (jitMode) => j
|
|
|
12707
12707
|
const specifiers = await resolveAngularSpecifiers(directories, linkerJitMode);
|
|
12708
12708
|
return computeAngularVendorPaths(specifiers);
|
|
12709
12709
|
}, buildAngularServerVendor = async (buildDir, directories = [], linkerJitMode = false) => {
|
|
12710
|
-
const vendorDir =
|
|
12710
|
+
const vendorDir = join19(buildDir, "angular", "vendor", "server");
|
|
12711
12711
|
mkdirSync7(vendorDir, { recursive: true });
|
|
12712
|
-
const tmpDir =
|
|
12712
|
+
const tmpDir = join19(buildDir, "_angular_server_vendor_tmp");
|
|
12713
12713
|
mkdirSync7(tmpDir, { recursive: true });
|
|
12714
12714
|
const browserSpecs = await resolveAngularSpecifiers(directories, linkerJitMode);
|
|
12715
12715
|
const allSpecs = new Set(browserSpecs);
|
|
@@ -12720,7 +12720,7 @@ var REQUIRED_ANGULAR_SPECIFIERS_BASE, requiredAngularSpecifiers = (jitMode) => j
|
|
|
12720
12720
|
const specifiers = Array.from(allSpecs);
|
|
12721
12721
|
const entrypoints = await Promise.all(specifiers.map(async (specifier) => {
|
|
12722
12722
|
const safeName = toSafeFileName2(specifier);
|
|
12723
|
-
const entryPath =
|
|
12723
|
+
const entryPath = join19(tmpDir, `${safeName}.ts`);
|
|
12724
12724
|
await Bun.write(entryPath, generateVendorEntrySource(specifier));
|
|
12725
12725
|
return entryPath;
|
|
12726
12726
|
}));
|
|
@@ -12742,9 +12742,9 @@ var REQUIRED_ANGULAR_SPECIFIERS_BASE, requiredAngularSpecifiers = (jitMode) => j
|
|
|
12742
12742
|
return specifiers;
|
|
12743
12743
|
}, computeAngularServerVendorPaths = (buildDir, specifiers) => {
|
|
12744
12744
|
const paths = {};
|
|
12745
|
-
const vendorDir =
|
|
12745
|
+
const vendorDir = join19(buildDir, "angular", "vendor", "server");
|
|
12746
12746
|
for (const specifier of specifiers) {
|
|
12747
|
-
paths[specifier] =
|
|
12747
|
+
paths[specifier] = join19(vendorDir, `${toSafeFileName2(specifier)}.js`);
|
|
12748
12748
|
}
|
|
12749
12749
|
return paths;
|
|
12750
12750
|
}, computeAngularServerVendorPathsAsync = async (buildDir, directories = [], linkerJitMode = true) => {
|
|
@@ -12799,17 +12799,17 @@ __export(exports_buildVueVendor, {
|
|
|
12799
12799
|
buildVueVendor: () => buildVueVendor
|
|
12800
12800
|
});
|
|
12801
12801
|
import { mkdirSync as mkdirSync8 } from "fs";
|
|
12802
|
-
import { join as
|
|
12802
|
+
import { join as join20 } from "path";
|
|
12803
12803
|
import { rm as rm7 } from "fs/promises";
|
|
12804
12804
|
var {build: bunBuild4 } = globalThis.Bun;
|
|
12805
12805
|
var vueSpecifiers, toSafeFileName3 = (specifier) => specifier.replace(/\//g, "_"), buildVueVendor = async (buildDir) => {
|
|
12806
|
-
const vendorDir =
|
|
12806
|
+
const vendorDir = join20(buildDir, "vue", "vendor");
|
|
12807
12807
|
mkdirSync8(vendorDir, { recursive: true });
|
|
12808
|
-
const tmpDir =
|
|
12808
|
+
const tmpDir = join20(buildDir, "_vue_vendor_tmp");
|
|
12809
12809
|
mkdirSync8(tmpDir, { recursive: true });
|
|
12810
12810
|
const entrypoints = await Promise.all(vueSpecifiers.map(async (specifier) => {
|
|
12811
12811
|
const safeName = toSafeFileName3(specifier);
|
|
12812
|
-
const entryPath =
|
|
12812
|
+
const entryPath = join20(tmpDir, `${safeName}.ts`);
|
|
12813
12813
|
await Bun.write(entryPath, `export * from '${specifier}';
|
|
12814
12814
|
`);
|
|
12815
12815
|
return entryPath;
|
|
@@ -12837,7 +12837,7 @@ var vueSpecifiers, toSafeFileName3 = (specifier) => specifier.replace(/\//g, "_"
|
|
|
12837
12837
|
const { readFileSync: readFileSync13, writeFileSync: writeFileSync7, readdirSync } = await import("fs");
|
|
12838
12838
|
const files = readdirSync(vendorDir).filter((f2) => f2.endsWith(".js"));
|
|
12839
12839
|
for (const file4 of files) {
|
|
12840
|
-
const filePath =
|
|
12840
|
+
const filePath = join20(vendorDir, file4);
|
|
12841
12841
|
const content = readFileSync13(filePath, "utf-8");
|
|
12842
12842
|
if (!content.includes("__VUE_HMR_RUNTIME__"))
|
|
12843
12843
|
continue;
|
|
@@ -12864,7 +12864,7 @@ __export(exports_buildSvelteVendor, {
|
|
|
12864
12864
|
buildSvelteVendor: () => buildSvelteVendor
|
|
12865
12865
|
});
|
|
12866
12866
|
import { mkdirSync as mkdirSync9 } from "fs";
|
|
12867
|
-
import { join as
|
|
12867
|
+
import { join as join21 } from "path";
|
|
12868
12868
|
import { rm as rm8 } from "fs/promises";
|
|
12869
12869
|
var {build: bunBuild5 } = globalThis.Bun;
|
|
12870
12870
|
var svelteSpecifiers, isResolvable3 = (specifier) => {
|
|
@@ -12878,13 +12878,13 @@ var svelteSpecifiers, isResolvable3 = (specifier) => {
|
|
|
12878
12878
|
const specifiers = resolveVendorSpecifiers2();
|
|
12879
12879
|
if (specifiers.length === 0)
|
|
12880
12880
|
return;
|
|
12881
|
-
const vendorDir =
|
|
12881
|
+
const vendorDir = join21(buildDir, "svelte", "vendor");
|
|
12882
12882
|
mkdirSync9(vendorDir, { recursive: true });
|
|
12883
|
-
const tmpDir =
|
|
12883
|
+
const tmpDir = join21(buildDir, "_svelte_vendor_tmp");
|
|
12884
12884
|
mkdirSync9(tmpDir, { recursive: true });
|
|
12885
12885
|
const entrypoints = await Promise.all(specifiers.map(async (specifier) => {
|
|
12886
12886
|
const safeName = toSafeFileName4(specifier);
|
|
12887
|
-
const entryPath =
|
|
12887
|
+
const entryPath = join21(tmpDir, `${safeName}.ts`);
|
|
12888
12888
|
await Bun.write(entryPath, `export * from '${specifier}';
|
|
12889
12889
|
`);
|
|
12890
12890
|
return entryPath;
|
|
@@ -12957,11 +12957,11 @@ var escapeRegex2 = (str) => str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), jsRewrit
|
|
|
12957
12957
|
if (Object.keys(vendorPaths).length === 0)
|
|
12958
12958
|
return;
|
|
12959
12959
|
const { readdirSync } = await import("fs");
|
|
12960
|
-
const { join:
|
|
12960
|
+
const { join: join22 } = await import("path");
|
|
12961
12961
|
const allFiles = [];
|
|
12962
12962
|
for (const dir of vendorDirs) {
|
|
12963
12963
|
try {
|
|
12964
|
-
const files = readdirSync(dir).filter((f2) => f2.endsWith(".js")).map((f2) =>
|
|
12964
|
+
const files = readdirSync(dir).filter((f2) => f2.endsWith(".js")).map((f2) => join22(dir, f2));
|
|
12965
12965
|
allFiles.push(...files);
|
|
12966
12966
|
} catch {}
|
|
12967
12967
|
}
|
|
@@ -13037,7 +13037,7 @@ import {
|
|
|
13037
13037
|
statSync,
|
|
13038
13038
|
writeFileSync as writeFileSync7
|
|
13039
13039
|
} from "fs";
|
|
13040
|
-
import { basename as basename8, dirname as dirname14, extname as extname6, join as
|
|
13040
|
+
import { basename as basename8, dirname as dirname14, extname as extname6, join as join22, relative as relative10, resolve as resolve21 } from "path";
|
|
13041
13041
|
import { cwd, env as env3, exit } from "process";
|
|
13042
13042
|
var {build: bunBuild6, Glob: Glob7 } = globalThis.Bun;
|
|
13043
13043
|
var isDev2, isBuildTraceEnabled = () => {
|
|
@@ -13115,8 +13115,8 @@ var isDev2, isBuildTraceEnabled = () => {
|
|
|
13115
13115
|
mkdirSync10(htmxDestDir, { recursive: true });
|
|
13116
13116
|
const glob = new Glob7("htmx*.min.js");
|
|
13117
13117
|
for (const relPath of glob.scanSync({ cwd: htmxDir })) {
|
|
13118
|
-
const src =
|
|
13119
|
-
const dest =
|
|
13118
|
+
const src = join22(htmxDir, relPath);
|
|
13119
|
+
const dest = join22(htmxDestDir, "htmx.min.js");
|
|
13120
13120
|
copyFileSync(src, dest);
|
|
13121
13121
|
return;
|
|
13122
13122
|
}
|
|
@@ -13191,7 +13191,7 @@ var isDev2, isBuildTraceEnabled = () => {
|
|
|
13191
13191
|
vuePagesPath
|
|
13192
13192
|
}) => {
|
|
13193
13193
|
const { readdirSync: readDir } = await import("fs");
|
|
13194
|
-
const devIndexDir =
|
|
13194
|
+
const devIndexDir = join22(buildPath, "_src_indexes");
|
|
13195
13195
|
mkdirSync10(devIndexDir, { recursive: true });
|
|
13196
13196
|
if (reactIndexesPath && reactPagesPath) {
|
|
13197
13197
|
copyReactDevIndexes(reactIndexesPath, reactPagesPath, devIndexDir, readDir);
|
|
@@ -13209,35 +13209,35 @@ var isDev2, isBuildTraceEnabled = () => {
|
|
|
13209
13209
|
const indexFiles = readDir(reactIndexesPath).filter((file4) => file4.endsWith(".tsx"));
|
|
13210
13210
|
const pagesRel = relative10(process.cwd(), resolve21(reactPagesPath)).replace(/\\/g, "/");
|
|
13211
13211
|
for (const file4 of indexFiles) {
|
|
13212
|
-
let content = readFileSync13(
|
|
13212
|
+
let content = readFileSync13(join22(reactIndexesPath, file4), "utf-8");
|
|
13213
13213
|
content = content.replace(/from\s*['"]([^'"]*\/pages\/([^'"]+))['"]/g, (_match, _fullPath, componentName) => `from '/@src/${pagesRel}/${componentName}'`);
|
|
13214
|
-
writeFileSync7(
|
|
13214
|
+
writeFileSync7(join22(devIndexDir, file4), content);
|
|
13215
13215
|
}
|
|
13216
13216
|
}, copySvelteDevIndexes = (svelteDir, sveltePagesPath, svelteEntries, devIndexDir) => {
|
|
13217
|
-
const svelteIndexDir =
|
|
13217
|
+
const svelteIndexDir = join22(svelteDir, "generated", "indexes");
|
|
13218
13218
|
const sveltePageEntries = svelteEntries.filter((file4) => resolve21(file4).startsWith(resolve21(sveltePagesPath)));
|
|
13219
13219
|
for (const entry of sveltePageEntries) {
|
|
13220
13220
|
const name = basename8(entry).replace(/\.svelte(\.(ts|js))?$/, "");
|
|
13221
|
-
const indexFile =
|
|
13221
|
+
const indexFile = join22(svelteIndexDir, "pages", `${name}.js`);
|
|
13222
13222
|
if (!existsSync19(indexFile))
|
|
13223
13223
|
continue;
|
|
13224
13224
|
let content = readFileSync13(indexFile, "utf-8");
|
|
13225
13225
|
const srcRel = relative10(process.cwd(), resolve21(entry)).replace(/\\/g, "/");
|
|
13226
13226
|
content = content.replace(/import\s+Component\s+from\s+['"]([^'"]+)['"]/, `import Component from "/@src/${srcRel}"`);
|
|
13227
|
-
writeFileSync7(
|
|
13227
|
+
writeFileSync7(join22(devIndexDir, `${name}.svelte.js`), content);
|
|
13228
13228
|
}
|
|
13229
13229
|
}, copyVueDevIndexes = (vueDir, vuePagesPath, vueEntries, devIndexDir) => {
|
|
13230
|
-
const vueIndexDir =
|
|
13230
|
+
const vueIndexDir = join22(vueDir, "generated", "indexes");
|
|
13231
13231
|
const vuePageEntries = vueEntries.filter((file4) => resolve21(file4).startsWith(resolve21(vuePagesPath)));
|
|
13232
13232
|
for (const entry of vuePageEntries) {
|
|
13233
13233
|
const name = basename8(entry, ".vue");
|
|
13234
|
-
const indexFile =
|
|
13234
|
+
const indexFile = join22(vueIndexDir, `${name}.js`);
|
|
13235
13235
|
if (!existsSync19(indexFile))
|
|
13236
13236
|
continue;
|
|
13237
13237
|
let content = readFileSync13(indexFile, "utf-8");
|
|
13238
13238
|
const srcRel = relative10(process.cwd(), resolve21(entry)).replace(/\\/g, "/");
|
|
13239
13239
|
content = content.replace(/import\s+Comp(?:\s*,\s*\*\s+as\s+\w+)?\s+from\s+['"]([^'"]+)['"]/, (match) => match.replace(/from\s+['"][^'"]+['"]/, `from "/@src/${srcRel}"`));
|
|
13240
|
-
writeFileSync7(
|
|
13240
|
+
writeFileSync7(join22(devIndexDir, `${name}.vue.js`), content);
|
|
13241
13241
|
}
|
|
13242
13242
|
}, resolveVueRuntimeId = (content, firstUseName, outputPath, projectRoot) => {
|
|
13243
13243
|
const varIdx = content.indexOf(`var ${firstUseName} =`);
|
|
@@ -13458,10 +13458,10 @@ ${content.slice(firstUseIdx)}`;
|
|
|
13458
13458
|
restoreTracePhase();
|
|
13459
13459
|
return;
|
|
13460
13460
|
}
|
|
13461
|
-
const traceDir =
|
|
13461
|
+
const traceDir = join22(buildPath2, ".absolute-trace");
|
|
13462
13462
|
const timestamp = new Date().toISOString().replace(/[:.]/g, "-");
|
|
13463
13463
|
mkdirSync10(traceDir, { recursive: true });
|
|
13464
|
-
writeFileSync7(
|
|
13464
|
+
writeFileSync7(join22(traceDir, `build-trace-${timestamp}.json`), JSON.stringify({
|
|
13465
13465
|
events: traceEvents,
|
|
13466
13466
|
frameworks: traceFrameworkNames,
|
|
13467
13467
|
generatedAt: new Date().toISOString(),
|
|
@@ -13491,14 +13491,14 @@ ${content.slice(firstUseIdx)}`;
|
|
|
13491
13491
|
const stylesPath = typeof stylesConfig === "string" ? stylesConfig : stylesConfig?.path;
|
|
13492
13492
|
const stylesIgnore = typeof stylesConfig === "object" ? stylesConfig.ignore : undefined;
|
|
13493
13493
|
const stylesDir = stylesPath && validateSafePath(stylesPath, projectRoot);
|
|
13494
|
-
const reactIndexesPath = reactDir &&
|
|
13495
|
-
const reactPagesPath = reactDir &&
|
|
13496
|
-
const htmlPagesPath = htmlDir &&
|
|
13497
|
-
const htmlScriptsPath = htmlDir &&
|
|
13498
|
-
const sveltePagesPath = svelteDir &&
|
|
13499
|
-
const vuePagesPath = vueDir &&
|
|
13500
|
-
const htmxPagesPath = htmxDir &&
|
|
13501
|
-
const angularPagesPath = angularDir &&
|
|
13494
|
+
const reactIndexesPath = reactDir && join22(reactDir, "generated", "indexes");
|
|
13495
|
+
const reactPagesPath = reactDir && join22(reactDir, "pages");
|
|
13496
|
+
const htmlPagesPath = htmlDir && join22(htmlDir, "pages");
|
|
13497
|
+
const htmlScriptsPath = htmlDir && join22(htmlDir, "scripts");
|
|
13498
|
+
const sveltePagesPath = svelteDir && join22(svelteDir, "pages");
|
|
13499
|
+
const vuePagesPath = vueDir && join22(vueDir, "pages");
|
|
13500
|
+
const htmxPagesPath = htmxDir && join22(htmxDir, "pages");
|
|
13501
|
+
const angularPagesPath = angularDir && join22(angularDir, "pages");
|
|
13502
13502
|
const frontends = [
|
|
13503
13503
|
reactDir,
|
|
13504
13504
|
htmlDir,
|
|
@@ -13536,12 +13536,12 @@ ${content.slice(firstUseIdx)}`;
|
|
|
13536
13536
|
if (svelteDir)
|
|
13537
13537
|
serverDirMap.push({
|
|
13538
13538
|
dir: svelteDir,
|
|
13539
|
-
subdir:
|
|
13539
|
+
subdir: join22("generated", "server")
|
|
13540
13540
|
});
|
|
13541
13541
|
if (vueDir)
|
|
13542
13542
|
serverDirMap.push({
|
|
13543
13543
|
dir: vueDir,
|
|
13544
|
-
subdir:
|
|
13544
|
+
subdir: join22("generated", "server")
|
|
13545
13545
|
});
|
|
13546
13546
|
if (angularDir)
|
|
13547
13547
|
serverDirMap.push({ dir: angularDir, subdir: "generated" });
|
|
@@ -13551,8 +13551,8 @@ ${content.slice(firstUseIdx)}`;
|
|
|
13551
13551
|
const [firstEntry] = serverDirMap;
|
|
13552
13552
|
if (!firstEntry)
|
|
13553
13553
|
throw new Error("Expected at least one server directory entry");
|
|
13554
|
-
serverRoot =
|
|
13555
|
-
serverOutDir =
|
|
13554
|
+
serverRoot = join22(firstEntry.dir, firstEntry.subdir);
|
|
13555
|
+
serverOutDir = join22(buildPath, basename8(firstEntry.dir));
|
|
13556
13556
|
} else if (serverDirMap.length > 1) {
|
|
13557
13557
|
serverRoot = commonAncestor(serverDirMap.map((entry) => entry.dir), projectRoot);
|
|
13558
13558
|
serverOutDir = buildPath;
|
|
@@ -13580,7 +13580,7 @@ ${content.slice(firstUseIdx)}`;
|
|
|
13580
13580
|
await tracePhase("react/index-generation", () => generateReactIndexFiles(reactPagesPath, reactIndexesPath, hmr));
|
|
13581
13581
|
}
|
|
13582
13582
|
if (assetsPath && (!isIncremental || normalizedIncrementalFiles?.some((f2) => f2.includes("/assets/")))) {
|
|
13583
|
-
await tracePhase("assets/copy", () => cpSync(assetsPath,
|
|
13583
|
+
await tracePhase("assets/copy", () => cpSync(assetsPath, join22(buildPath, "assets"), {
|
|
13584
13584
|
force: true,
|
|
13585
13585
|
recursive: true
|
|
13586
13586
|
}));
|
|
@@ -13629,7 +13629,7 @@ ${content.slice(firstUseIdx)}`;
|
|
|
13629
13629
|
const reactEntries = isIncremental && reactIndexesPath && reactPagesPath ? filterToIncrementalEntries(allReactEntries, (entry) => {
|
|
13630
13630
|
if (entry.startsWith(resolve21(reactIndexesPath))) {
|
|
13631
13631
|
const pageName = basename8(entry, ".tsx");
|
|
13632
|
-
return
|
|
13632
|
+
return join22(reactPagesPath, `${pageName}.tsx`);
|
|
13633
13633
|
}
|
|
13634
13634
|
return null;
|
|
13635
13635
|
}) : allReactEntries;
|
|
@@ -13726,7 +13726,7 @@ ${content.slice(firstUseIdx)}`;
|
|
|
13726
13726
|
const compileReactConventions = async () => {
|
|
13727
13727
|
if (reactConventionSources.length === 0)
|
|
13728
13728
|
return emptyStringArray;
|
|
13729
|
-
const destDir =
|
|
13729
|
+
const destDir = join22(buildPath, "conventions", "react");
|
|
13730
13730
|
rmSync2(destDir, { force: true, recursive: true });
|
|
13731
13731
|
mkdirSync10(destDir, { recursive: true });
|
|
13732
13732
|
const destPaths = [];
|
|
@@ -13770,7 +13770,7 @@ ${content.slice(firstUseIdx)}`;
|
|
|
13770
13770
|
angularConventionSources.length > 0 && angularDir ? tracePhase("compile/convention-angular", () => Promise.resolve().then(() => (init_compileAngular(), exports_compileAngular)).then((mod) => mod.compileAngular(angularConventionSources, angularDir, hmr, styleTransformConfig))) : { serverPaths: emptyStringArray }
|
|
13771
13771
|
]);
|
|
13772
13772
|
const bundleConventionFiles = async (framework, compiledPaths) => {
|
|
13773
|
-
const destDir =
|
|
13773
|
+
const destDir = join22(buildPath, "conventions", framework);
|
|
13774
13774
|
rmSync2(destDir, { force: true, recursive: true });
|
|
13775
13775
|
mkdirSync10(destDir, { recursive: true });
|
|
13776
13776
|
const destPaths = [];
|
|
@@ -13843,7 +13843,7 @@ ${content.slice(firstUseIdx)}`;
|
|
|
13843
13843
|
}
|
|
13844
13844
|
})) : {
|
|
13845
13845
|
entries: [],
|
|
13846
|
-
generatedRoot:
|
|
13846
|
+
generatedRoot: join22(buildPath, "_island_entries")
|
|
13847
13847
|
};
|
|
13848
13848
|
const islandClientEntryPoints = islandEntryResult.entries.map((entry) => entry.entryPath);
|
|
13849
13849
|
if (serverEntryPoints.length === 0 && reactClientEntryPoints.length === 0 && nonReactClientEntryPoints.length === 0 && islandClientEntryPoints.length === 0 && htmxDir === undefined && htmlDir === undefined) {
|
|
@@ -13879,7 +13879,7 @@ ${content.slice(firstUseIdx)}`;
|
|
|
13879
13879
|
return {};
|
|
13880
13880
|
}
|
|
13881
13881
|
if (hmr && reactIndexesPath && reactClientEntryPoints.length > 0) {
|
|
13882
|
-
const refreshEntry =
|
|
13882
|
+
const refreshEntry = join22(reactIndexesPath, "_refresh.tsx");
|
|
13883
13883
|
if (!reactClientEntryPoints.includes(refreshEntry))
|
|
13884
13884
|
reactClientEntryPoints.push(refreshEntry);
|
|
13885
13885
|
}
|
|
@@ -13983,19 +13983,19 @@ ${content.slice(firstUseIdx)}`;
|
|
|
13983
13983
|
throw: false
|
|
13984
13984
|
}, resolveBunBuildOverride(bunBuildConfig, "reactClient")) : undefined;
|
|
13985
13985
|
if (reactDir && reactClientEntryPoints.length > 0) {
|
|
13986
|
-
rmSync2(
|
|
13986
|
+
rmSync2(join22(buildPath, "react", "generated", "indexes"), {
|
|
13987
13987
|
force: true,
|
|
13988
13988
|
recursive: true
|
|
13989
13989
|
});
|
|
13990
13990
|
}
|
|
13991
13991
|
if (angularDir && angularClientPaths.length > 0) {
|
|
13992
|
-
rmSync2(
|
|
13992
|
+
rmSync2(join22(buildPath, "angular", "indexes"), {
|
|
13993
13993
|
force: true,
|
|
13994
13994
|
recursive: true
|
|
13995
13995
|
});
|
|
13996
13996
|
}
|
|
13997
13997
|
if (islandClientEntryPoints.length > 0) {
|
|
13998
|
-
rmSync2(
|
|
13998
|
+
rmSync2(join22(buildPath, "islands"), {
|
|
13999
13999
|
force: true,
|
|
14000
14000
|
recursive: true
|
|
14001
14001
|
});
|
|
@@ -14064,7 +14064,7 @@ ${content.slice(firstUseIdx)}`;
|
|
|
14064
14064
|
globalCssEntries.length > 0 ? tracePhase("bun/global-css", () => bunBuild6(mergeBunBuildConfig({
|
|
14065
14065
|
entrypoints: globalCssEntries,
|
|
14066
14066
|
naming: `[dir]/[name].[hash].[ext]`,
|
|
14067
|
-
outdir: stylesDir ?
|
|
14067
|
+
outdir: stylesDir ? join22(buildPath, basename8(stylesDir)) : buildPath,
|
|
14068
14068
|
plugins: [stylePreprocessorPlugin2],
|
|
14069
14069
|
root: stylesDir || clientRoot,
|
|
14070
14070
|
target: "browser",
|
|
@@ -14073,7 +14073,7 @@ ${content.slice(firstUseIdx)}`;
|
|
|
14073
14073
|
vueCssPaths.length > 0 ? tracePhase("bun/vue-css", () => bunBuild6(mergeBunBuildConfig({
|
|
14074
14074
|
entrypoints: vueCssPaths,
|
|
14075
14075
|
naming: `[name].[hash].[ext]`,
|
|
14076
|
-
outdir:
|
|
14076
|
+
outdir: join22(buildPath, assetsPath ? basename8(assetsPath) : "assets", "css"),
|
|
14077
14077
|
target: "browser",
|
|
14078
14078
|
throw: false
|
|
14079
14079
|
}, resolveBunBuildOverride(bunBuildConfig, "vueCss")))) : undefined
|
|
@@ -14221,7 +14221,7 @@ ${content.slice(firstUseIdx)}`;
|
|
|
14221
14221
|
const processHtmlPages = async () => {
|
|
14222
14222
|
if (!(htmlDir && htmlPagesPath))
|
|
14223
14223
|
return;
|
|
14224
|
-
const outputHtmlPages = isSingle ?
|
|
14224
|
+
const outputHtmlPages = isSingle ? join22(buildPath, "pages") : join22(buildPath, basename8(htmlDir), "pages");
|
|
14225
14225
|
mkdirSync10(outputHtmlPages, { recursive: true });
|
|
14226
14226
|
cpSync(htmlPagesPath, outputHtmlPages, {
|
|
14227
14227
|
force: true,
|
|
@@ -14243,14 +14243,14 @@ ${content.slice(firstUseIdx)}`;
|
|
|
14243
14243
|
const processHtmxPages = async () => {
|
|
14244
14244
|
if (!(htmxDir && htmxPagesPath))
|
|
14245
14245
|
return;
|
|
14246
|
-
const outputHtmxPages = isSingle ?
|
|
14246
|
+
const outputHtmxPages = isSingle ? join22(buildPath, "pages") : join22(buildPath, basename8(htmxDir), "pages");
|
|
14247
14247
|
mkdirSync10(outputHtmxPages, { recursive: true });
|
|
14248
14248
|
cpSync(htmxPagesPath, outputHtmxPages, {
|
|
14249
14249
|
force: true,
|
|
14250
14250
|
recursive: true
|
|
14251
14251
|
});
|
|
14252
14252
|
if (shouldCopyHtmx) {
|
|
14253
|
-
const htmxDestDir = isSingle ? buildPath :
|
|
14253
|
+
const htmxDestDir = isSingle ? buildPath : join22(buildPath, basename8(htmxDir));
|
|
14254
14254
|
copyHtmxVendor(htmxDir, htmxDestDir);
|
|
14255
14255
|
}
|
|
14256
14256
|
if (shouldUpdateHtmxAssetPaths) {
|
|
@@ -14311,9 +14311,9 @@ ${content.slice(firstUseIdx)}`;
|
|
|
14311
14311
|
writeBuildTrace(buildPath);
|
|
14312
14312
|
return { conventions: conventionsMap, manifest };
|
|
14313
14313
|
}
|
|
14314
|
-
writeFileSync7(
|
|
14314
|
+
writeFileSync7(join22(buildPath, "manifest.json"), JSON.stringify(manifest, null, "\t"));
|
|
14315
14315
|
if (Object.keys(conventionsMap).length > 0) {
|
|
14316
|
-
writeFileSync7(
|
|
14316
|
+
writeFileSync7(join22(buildPath, "conventions.json"), JSON.stringify(conventionsMap, null, "\t"));
|
|
14317
14317
|
}
|
|
14318
14318
|
writeBuildTrace(buildPath);
|
|
14319
14319
|
if (tailwind && mode === "production") {
|
|
@@ -14868,7 +14868,7 @@ var init_pathUtils = __esm(() => {
|
|
|
14868
14868
|
// src/dev/fileWatcher.ts
|
|
14869
14869
|
import { watch } from "fs";
|
|
14870
14870
|
import { existsSync as existsSync21 } from "fs";
|
|
14871
|
-
import { join as
|
|
14871
|
+
import { join as join23, resolve as resolve24 } from "path";
|
|
14872
14872
|
var safeRemoveFromGraph = (graph, fullPath) => {
|
|
14873
14873
|
try {
|
|
14874
14874
|
removeFileFromGraph(graph, fullPath);
|
|
@@ -14895,7 +14895,7 @@ var safeRemoveFromGraph = (graph, fullPath) => {
|
|
|
14895
14895
|
if (shouldSkipFilename(filename, isStylesDir)) {
|
|
14896
14896
|
return;
|
|
14897
14897
|
}
|
|
14898
|
-
const fullPath =
|
|
14898
|
+
const fullPath = join23(absolutePath, filename).replace(/\\/g, "/");
|
|
14899
14899
|
if (shouldIgnorePath(fullPath, state.resolvedPaths)) {
|
|
14900
14900
|
return;
|
|
14901
14901
|
}
|
|
@@ -15356,7 +15356,7 @@ __export(exports_moduleServer, {
|
|
|
15356
15356
|
SRC_URL_PREFIX: () => SRC_URL_PREFIX
|
|
15357
15357
|
});
|
|
15358
15358
|
import { existsSync as existsSync22, readFileSync as readFileSync16, statSync as statSync2 } from "fs";
|
|
15359
|
-
import { basename as basename10, dirname as dirname15, extname as extname7, resolve as resolve28, relative as relative11 } from "path";
|
|
15359
|
+
import { basename as basename10, dirname as dirname15, extname as extname7, join as join24, resolve as resolve28, relative as relative11 } from "path";
|
|
15360
15360
|
var SRC_PREFIX = "/@src/", jsTranspiler2, tsTranspiler2, tsxTranspiler, TRANSPILABLE, ALL_EXPORTS_RE, STRING_CONTENTS_RE, preserveTypeExports = (originalSource, transpiled, valueExports) => {
|
|
15361
15361
|
const codeOnly = originalSource.replace(STRING_CONTENTS_RE, '""');
|
|
15362
15362
|
const allExports = [];
|
|
@@ -15426,7 +15426,7 @@ ${stubs}
|
|
|
15426
15426
|
const subpath = isScoped ? parts.slice(2).join("/") : parts.slice(1).join("/");
|
|
15427
15427
|
if (!subpath) {
|
|
15428
15428
|
const pkgDir = resolve28(projectRoot, "node_modules", packageName ?? "");
|
|
15429
|
-
const pkgJsonPath =
|
|
15429
|
+
const pkgJsonPath = join24(pkgDir, "package.json");
|
|
15430
15430
|
if (existsSync22(pkgJsonPath)) {
|
|
15431
15431
|
const pkg = JSON.parse(readFileSync16(pkgJsonPath, "utf-8"));
|
|
15432
15432
|
const esmEntry = typeof pkg.module === "string" && pkg.module || typeof pkg.browser === "string" && pkg.browser;
|
|
@@ -19119,7 +19119,7 @@ var runWithStreamingSlotRegistry = async (task) => {
|
|
|
19119
19119
|
// src/angular/injectorPatch.ts
|
|
19120
19120
|
init_resolveAngularPackage();
|
|
19121
19121
|
import { existsSync as existsSync2, readFileSync as readFileSync2, writeFileSync } from "fs";
|
|
19122
|
-
import { dirname, join as
|
|
19122
|
+
import { dirname, join as join2 } from "path";
|
|
19123
19123
|
var applyCompilerFacadePatch = (chunkPath, content) => {
|
|
19124
19124
|
const marker = "absolutejs.compilerFacadeAutoload";
|
|
19125
19125
|
if (content.includes(marker))
|
|
@@ -19159,7 +19159,7 @@ var applyCompilerFacadePatch = (chunkPath, content) => {
|
|
|
19159
19159
|
};
|
|
19160
19160
|
var resolveAngularCoreDir = () => {
|
|
19161
19161
|
const resolved = resolveAngularPackageDir("@angular/core");
|
|
19162
|
-
if (resolved && existsSync2(
|
|
19162
|
+
if (resolved && existsSync2(join2(resolved, "package.json"))) {
|
|
19163
19163
|
return resolved;
|
|
19164
19164
|
}
|
|
19165
19165
|
try {
|
|
@@ -19178,7 +19178,7 @@ var patchAngularCompilerFacade = () => {
|
|
|
19178
19178
|
const coreDir = resolveAngularCoreDir();
|
|
19179
19179
|
if (!coreDir)
|
|
19180
19180
|
return;
|
|
19181
|
-
tryApplyChunkPatch(
|
|
19181
|
+
tryApplyChunkPatch(join2(coreDir, "fesm2022", "_debug_node-chunk.mjs"), applyCompilerFacadePatch);
|
|
19182
19182
|
} catch {}
|
|
19183
19183
|
};
|
|
19184
19184
|
patchAngularCompilerFacade();
|
|
@@ -26832,5 +26832,5 @@ export {
|
|
|
26832
26832
|
ANGULAR_INIT_TIMEOUT_MS
|
|
26833
26833
|
};
|
|
26834
26834
|
|
|
26835
|
-
//# debugId=
|
|
26835
|
+
//# debugId=160F1700C5043F5364756E2164756E21
|
|
26836
26836
|
//# sourceMappingURL=index.js.map
|