@absolutejs/absolute 0.19.0-beta.690 → 0.19.0-beta.691

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
@@ -2504,8 +2504,9 @@ var init_lowerAwaitSlotSyntax = __esm(() => {
2504
2504
  // src/build/stylePreprocessor.ts
2505
2505
  import { readFileSync as readFileSync3 } from "fs";
2506
2506
  import { readFile } from "fs/promises";
2507
- import { dirname as dirname2, extname } from "path";
2508
- var STYLE_EXTENSION_PATTERN, STYLE_MODULE_EXTENSION_PATTERN, STYLE_LANGUAGE_PATTERN, importOptionalPeer, requireOptionalPeer, isPreprocessableStylePath = (filePath) => STYLE_EXTENSION_PATTERN.test(filePath), isStyleModulePath = (filePath) => STYLE_MODULE_EXTENSION_PATTERN.test(filePath), isStylePath = (filePath) => /\.(css|s[ac]ss|less)$/i.test(filePath), getStyleBaseName = (filePath) => filePath.replace(/\.(css|s[ac]ss|less)$/i, ""), getStyleLanguage = (filePathOrLanguage) => {
2507
+ import { createRequire } from "module";
2508
+ import { dirname as dirname2, extname, join as join3 } from "path";
2509
+ var STYLE_EXTENSION_PATTERN, STYLE_MODULE_EXTENSION_PATTERN, STYLE_LANGUAGE_PATTERN, importOptionalPeer, requireOptionalPeer, requireFromCwd, isPreprocessableStylePath = (filePath) => STYLE_EXTENSION_PATTERN.test(filePath), isStyleModulePath = (filePath) => STYLE_MODULE_EXTENSION_PATTERN.test(filePath), isStylePath = (filePath) => /\.(css|s[ac]ss|less)$/i.test(filePath), getStyleBaseName = (filePath) => filePath.replace(/\.(css|s[ac]ss|less)$/i, ""), getStyleLanguage = (filePathOrLanguage) => {
2509
2510
  const normalized = filePathOrLanguage.toLowerCase();
2510
2511
  if (normalized === "scss" || normalized.endsWith(".scss"))
2511
2512
  return "scss";
@@ -2514,7 +2515,13 @@ var STYLE_EXTENSION_PATTERN, STYLE_MODULE_EXTENSION_PATTERN, STYLE_LANGUAGE_PATT
2514
2515
  if (normalized === "less" || normalized.endsWith(".less"))
2515
2516
  return "less";
2516
2517
  return null;
2517
- }, missingDependencyError = (name, filePath) => new Error(`Unable to compile ${filePath}: install optional dependency "${name}" to use this stylesheet preprocessor.`), compileStyleSource = async (filePath, source, languageHint) => {
2518
+ }, missingDependencyError = (name, filePath) => new Error(`Unable to compile ${filePath}: install optional dependency "${name}" to use this stylesheet preprocessor.`), requireOptionalPeerSync = (specifier) => {
2519
+ try {
2520
+ return requireFromCwd(specifier);
2521
+ } catch {
2522
+ return requireOptionalPeer(specifier);
2523
+ }
2524
+ }, compileStyleSource = async (filePath, source, languageHint) => {
2518
2525
  const language = getStyleLanguage(languageHint ?? filePath);
2519
2526
  const contents = source ?? await readFile(filePath, "utf-8");
2520
2527
  if (language === "scss" || language === "sass") {
@@ -2575,7 +2582,7 @@ var STYLE_EXTENSION_PATTERN, STYLE_MODULE_EXTENSION_PATTERN, STYLE_LANGUAGE_PATT
2575
2582
  if (language === "scss" || language === "sass") {
2576
2583
  let sass;
2577
2584
  try {
2578
- sass = requireOptionalPeer("sass");
2585
+ sass = requireOptionalPeerSync("sass");
2579
2586
  } catch {
2580
2587
  throw missingDependencyError("sass", filePath);
2581
2588
  }
@@ -2597,6 +2604,7 @@ var init_stylePreprocessor = __esm(() => {
2597
2604
  STYLE_LANGUAGE_PATTERN = /^(s[ac]ss|less)$/i;
2598
2605
  importOptionalPeer = new Function("specifier", "return import(specifier)");
2599
2606
  requireOptionalPeer = new Function("specifier", "return require(specifier)");
2607
+ requireFromCwd = createRequire(join3(process.cwd(), "package.json"));
2600
2608
  stylePreprocessorPlugin = {
2601
2609
  name: "absolute-style-preprocessor",
2602
2610
  setup(build) {
@@ -2635,13 +2643,13 @@ var init_stylePreprocessor = __esm(() => {
2635
2643
 
2636
2644
  // src/core/svelteServerModule.ts
2637
2645
  import { mkdir, readdir } from "fs/promises";
2638
- import { basename as basename2, dirname as dirname3, extname as extname2, join as join3, relative, resolve as resolve4 } from "path";
2646
+ import { basename as basename2, dirname as dirname3, extname as extname2, join as join4, relative, resolve as resolve4 } from "path";
2639
2647
  var serverCacheRoot, compiledModuleCache, originalSourcePathCache, transpiler, ensureRelativeImportPath = (from, target) => {
2640
2648
  const importPath = relative(dirname3(from), target).replace(/\\/g, "/");
2641
2649
  return importPath.startsWith(".") ? importPath : `./${importPath}`;
2642
2650
  }, processDirectoryEntries = (entries, dir, targetFileName, stack) => {
2643
2651
  for (const entry of entries) {
2644
- const entryPath = join3(dir, entry.name);
2652
+ const entryPath = join4(dir, entry.name);
2645
2653
  if (entry.isDirectory())
2646
2654
  stack.push(entryPath);
2647
2655
  if (entry.isFile() && entry.name === targetFileName) {
@@ -2671,11 +2679,11 @@ var serverCacheRoot, compiledModuleCache, originalSourcePathCache, transpiler, e
2671
2679
  if (cachedPath !== undefined) {
2672
2680
  return cachedPath;
2673
2681
  }
2674
- if (!sourcePath.includes(`${join3(process.cwd(), "build")}${process.platform === "win32" ? "" : "/"}`) && !sourcePath.includes("/build/")) {
2682
+ if (!sourcePath.includes(`${join4(process.cwd(), "build")}${process.platform === "win32" ? "" : "/"}`) && !sourcePath.includes("/build/")) {
2675
2683
  originalSourcePathCache.set(sourcePath, sourcePath);
2676
2684
  return sourcePath;
2677
2685
  }
2678
- const resolvedSourcePath = await findSourceFileByBasename(join3(process.cwd(), "src"), normalizeBuiltSvelteFileName(sourcePath));
2686
+ const resolvedSourcePath = await findSourceFileByBasename(join4(process.cwd(), "src"), normalizeBuiltSvelteFileName(sourcePath));
2679
2687
  const nextPath = resolvedSourcePath ?? sourcePath;
2680
2688
  originalSourcePathCache.set(sourcePath, nextPath);
2681
2689
  return nextPath;
@@ -2691,11 +2699,11 @@ var serverCacheRoot, compiledModuleCache, originalSourcePathCache, transpiler, e
2691
2699
  `${basePath}.mjs`,
2692
2700
  `${basePath}.cjs`,
2693
2701
  `${basePath}.json`,
2694
- join3(basePath, "index.ts"),
2695
- join3(basePath, "index.js"),
2696
- join3(basePath, "index.mjs"),
2697
- join3(basePath, "index.cjs"),
2698
- join3(basePath, "index.json")
2702
+ join4(basePath, "index.ts"),
2703
+ join4(basePath, "index.js"),
2704
+ join4(basePath, "index.mjs"),
2705
+ join4(basePath, "index.cjs"),
2706
+ join4(basePath, "index.json")
2699
2707
  ];
2700
2708
  const existResults = await Promise.all(candidates.map((candidate) => Bun.file(candidate).exists()));
2701
2709
  const foundIndex = existResults.indexOf(true);
@@ -2703,7 +2711,7 @@ var serverCacheRoot, compiledModuleCache, originalSourcePathCache, transpiler, e
2703
2711
  }, getCachedModulePath = (sourcePath) => {
2704
2712
  const relativeSourcePath = relative(process.cwd(), sourcePath).replace(/\\/g, "/");
2705
2713
  const normalizedSourcePath = relativeSourcePath.startsWith("..") ? sourcePath.replace(/[:\\/]/g, "_") : relativeSourcePath;
2706
- return join3(serverCacheRoot, `${normalizedSourcePath}.server.js`);
2714
+ return join4(serverCacheRoot, `${normalizedSourcePath}.server.js`);
2707
2715
  }, resolveSvelteImport = async (spec, from) => {
2708
2716
  if (!spec.startsWith(".") && !spec.startsWith("/")) {
2709
2717
  const resolved = resolvePackageImport(spec);
@@ -2804,7 +2812,7 @@ var init_svelteServerModule = __esm(() => {
2804
2812
  init_lowerIslandSyntax();
2805
2813
  init_lowerAwaitSlotSyntax();
2806
2814
  init_stylePreprocessor();
2807
- serverCacheRoot = join3(process.cwd(), ".absolutejs", "islands", "svelte");
2815
+ serverCacheRoot = join4(process.cwd(), ".absolutejs", "islands", "svelte");
2808
2816
  compiledModuleCache = new Map;
2809
2817
  originalSourcePathCache = new Map;
2810
2818
  transpiler = new Bun.Transpiler({
@@ -2970,7 +2978,7 @@ import {
2970
2978
  rmSync,
2971
2979
  writeFileSync as writeFileSync2
2972
2980
  } from "fs";
2973
- import { dirname as dirname4, extname as extname3, join as join4, relative as relative2, resolve as resolve5 } from "path";
2981
+ import { dirname as dirname4, extname as extname3, join as join5, relative as relative2, resolve as resolve5 } from "path";
2974
2982
  import ts from "typescript";
2975
2983
  var frameworks, isRecord4 = (value) => typeof value === "object" && value !== null, resolveRegistryExport = (mod) => {
2976
2984
  if (isRecord4(mod.islandRegistry))
@@ -3126,11 +3134,11 @@ export default component;
3126
3134
  buildPath,
3127
3135
  clientPathMaps = {}
3128
3136
  }) => {
3129
- const generatedRoot = join4(buildPath, "_island_entries");
3137
+ const generatedRoot = join5(buildPath, "_island_entries");
3130
3138
  rmSync(generatedRoot, { force: true, recursive: true });
3131
3139
  const entries = [];
3132
3140
  for (const definition of buildInfo.definitions) {
3133
- const entryPath = join4(generatedRoot, "islands", definition.framework, `${definition.component}.ts`);
3141
+ const entryPath = join5(generatedRoot, "islands", definition.framework, `${definition.component}.ts`);
3134
3142
  const { buildReference } = definition;
3135
3143
  const source = buildReference ? resolveIslandSourcePath(buildInfo.resolvedRegistryPath, buildReference.source) : null;
3136
3144
  const compiledSourcePath = source && shouldUseCompiledClientPath(definition.framework, source) ? clientPathMaps[definition.framework]?.get(source) : undefined;
@@ -3670,7 +3678,7 @@ __export(exports_generateReactIndexes, {
3670
3678
  });
3671
3679
  import { existsSync as existsSync5, mkdirSync as mkdirSync2 } from "fs";
3672
3680
  import { readdir as readdir2, rm, writeFile } from "fs/promises";
3673
- import { basename as basename3, join as join5, relative as relative3, resolve as resolve9, sep } from "path";
3681
+ import { basename as basename3, join as join6, relative as relative3, resolve as resolve9, sep } from "path";
3674
3682
  var {Glob: Glob2 } = globalThis.Bun;
3675
3683
  var indexContentCache, resolveDevClientDir = () => {
3676
3684
  const projectRoot = process.cwd();
@@ -3703,8 +3711,8 @@ var indexContentCache, resolveDevClientDir = () => {
3703
3711
  });
3704
3712
  if (staleIndexes.length > 0) {
3705
3713
  await Promise.all(staleIndexes.map((indexFile) => {
3706
- indexContentCache.delete(join5(reactIndexesDirectory, indexFile));
3707
- return rm(join5(reactIndexesDirectory, indexFile), {
3714
+ indexContentCache.delete(join6(reactIndexesDirectory, indexFile));
3715
+ return rm(join6(reactIndexesDirectory, indexFile), {
3708
3716
  force: true
3709
3717
  });
3710
3718
  }));
@@ -3973,7 +3981,7 @@ var indexContentCache, resolveDevClientDir = () => {
3973
3981
  ] : []
3974
3982
  ].join(`
3975
3983
  `);
3976
- const indexPath = join5(reactIndexesDirectory, `${componentName}.tsx`);
3984
+ const indexPath = join6(reactIndexesDirectory, `${componentName}.tsx`);
3977
3985
  const hasher = new Bun.CryptoHasher("md5");
3978
3986
  hasher.update(content);
3979
3987
  const contentHash = hasher.digest("hex");
@@ -3987,7 +3995,7 @@ var indexContentCache, resolveDevClientDir = () => {
3987
3995
  if (!isDev2) {
3988
3996
  return;
3989
3997
  }
3990
- const refreshPath = join5(reactIndexesDirectory, "_refresh.tsx");
3998
+ const refreshPath = join6(reactIndexesDirectory, "_refresh.tsx");
3991
3999
  if (!existsSync5(refreshPath)) {
3992
4000
  await writeFile(refreshPath, `import '${refreshSetupPath}';
3993
4001
  import 'react';
@@ -3998,9 +4006,9 @@ import 'react-dom/client';
3998
4006
  var init_generateReactIndexes = __esm(() => {
3999
4007
  indexContentCache = new Map;
4000
4008
  devClientDir = resolveDevClientDir();
4001
- errorOverlayPath = join5(devClientDir, "errorOverlay.ts").replace(/\\/g, "/");
4002
- hmrClientPath = join5(devClientDir, "hmrClient.ts").replace(/\\/g, "/");
4003
- refreshSetupPath = join5(devClientDir, "reactRefreshSetup.ts").replace(/\\/g, "/");
4009
+ errorOverlayPath = join6(devClientDir, "errorOverlay.ts").replace(/\\/g, "/");
4010
+ hmrClientPath = join6(devClientDir, "hmrClient.ts").replace(/\\/g, "/");
4011
+ refreshSetupPath = join6(devClientDir, "reactRefreshSetup.ts").replace(/\\/g, "/");
4004
4012
  });
4005
4013
 
4006
4014
  // src/build/wrapHTMLScript.ts
@@ -4137,7 +4145,7 @@ var init_scanCssEntryPoints = __esm(() => {
4137
4145
 
4138
4146
  // src/utils/imageProcessing.ts
4139
4147
  import { existsSync as existsSync8, mkdirSync as mkdirSync3, readFileSync as readFileSync6, writeFileSync as writeFileSync4 } from "fs";
4140
- import { join as join6, resolve as resolve10 } from "path";
4148
+ import { join as join7, resolve as resolve10 } from "path";
4141
4149
  var DEFAULT_DEVICE_SIZES, DEFAULT_IMAGE_SIZES, DEFAULT_QUALITY = 75, OPTIMIZATION_ENDPOINT = "/_absolute/image", BLUR_DEVIATION = 20, sharpModule = undefined, sharpLoaded = false, sharpWarned = false, snapToSize = (target, sizes) => {
4142
4150
  for (const size of sizes) {
4143
4151
  if (size >= target)
@@ -4190,7 +4198,7 @@ var DEFAULT_DEVICE_SIZES, DEFAULT_IMAGE_SIZES, DEFAULT_QUALITY = 75, OPTIMIZATIO
4190
4198
  const image2 = config?.imageSizes ?? DEFAULT_IMAGE_SIZES;
4191
4199
  return [...device, ...image2].sort((left, right) => left - right);
4192
4200
  }, getCacheDir = (buildDir) => {
4193
- const dir = join6(buildDir, ".cache", "images");
4201
+ const dir = join7(buildDir, ".cache", "images");
4194
4202
  if (!existsSync8(dir))
4195
4203
  mkdirSync3(dir, { recursive: true });
4196
4204
  return dir;
@@ -4247,8 +4255,8 @@ var DEFAULT_DEVICE_SIZES, DEFAULT_IMAGE_SIZES, DEFAULT_QUALITY = 75, OPTIMIZATIO
4247
4255
  return toBuffer(buffer);
4248
4256
  }
4249
4257
  }, readFromCache = (cacheDir, cacheKey) => {
4250
- const metaPath = join6(cacheDir, `${cacheKey}.meta`);
4251
- const dataPath = join6(cacheDir, `${cacheKey}.data`);
4258
+ const metaPath = join7(cacheDir, `${cacheKey}.meta`);
4259
+ const dataPath = join7(cacheDir, `${cacheKey}.data`);
4252
4260
  if (!existsSync8(metaPath) || !existsSync8(dataPath))
4253
4261
  return null;
4254
4262
  try {
@@ -4275,8 +4283,8 @@ var DEFAULT_DEVICE_SIZES, DEFAULT_IMAGE_SIZES, DEFAULT_QUALITY = 75, OPTIMIZATIO
4275
4283
  return null;
4276
4284
  }
4277
4285
  }, writeToCache = (cacheDir, cacheKey, buffer, meta) => {
4278
- const metaPath = join6(cacheDir, `${cacheKey}.meta`);
4279
- const dataPath = join6(cacheDir, `${cacheKey}.data`);
4286
+ const metaPath = join7(cacheDir, `${cacheKey}.meta`);
4287
+ const dataPath = join7(cacheDir, `${cacheKey}.data`);
4280
4288
  writeFileSync4(dataPath, buffer);
4281
4289
  writeFileSync4(metaPath, JSON.stringify(meta));
4282
4290
  };
@@ -4370,7 +4378,7 @@ var init_optimizeHtmlImages = __esm(() => {
4370
4378
  // src/cli/scripts/telemetry.ts
4371
4379
  import { existsSync as existsSync9, mkdirSync as mkdirSync4, readFileSync as readFileSync7, writeFileSync as writeFileSync5 } from "fs";
4372
4380
  import { homedir } from "os";
4373
- import { join as join7 } from "path";
4381
+ import { join as join8 } from "path";
4374
4382
  var configDir, configPath, getTelemetryConfig = () => {
4375
4383
  try {
4376
4384
  if (!existsSync9(configPath))
@@ -4383,14 +4391,14 @@ var configDir, configPath, getTelemetryConfig = () => {
4383
4391
  }
4384
4392
  };
4385
4393
  var init_telemetry = __esm(() => {
4386
- configDir = join7(homedir(), ".absolutejs");
4387
- configPath = join7(configDir, "telemetry.json");
4394
+ configDir = join8(homedir(), ".absolutejs");
4395
+ configPath = join8(configDir, "telemetry.json");
4388
4396
  });
4389
4397
 
4390
4398
  // src/cli/telemetryEvent.ts
4391
4399
  import { existsSync as existsSync10, readFileSync as readFileSync8 } from "fs";
4392
4400
  import { arch, platform } from "os";
4393
- import { dirname as dirname6, join as join8, parse } from "path";
4401
+ import { dirname as dirname6, join as join9, parse } from "path";
4394
4402
  var checkCandidate = (candidate) => {
4395
4403
  if (!existsSync10(candidate)) {
4396
4404
  return null;
@@ -4410,7 +4418,7 @@ var checkCandidate = (candidate) => {
4410
4418
  }, findPackageVersion = () => {
4411
4419
  let { dir } = import.meta;
4412
4420
  while (dir !== parse(dir).root) {
4413
- const candidate = join8(dir, "package.json");
4421
+ const candidate = join9(dir, "package.json");
4414
4422
  const version = checkCandidate(candidate);
4415
4423
  if (version) {
4416
4424
  return version;
@@ -4703,7 +4711,7 @@ var devVendorPaths = null, getDevVendorPaths = () => devVendorPaths, setDevVendo
4703
4711
 
4704
4712
  // src/build/angularLinkerPlugin.ts
4705
4713
  import { existsSync as existsSync12, mkdirSync as mkdirSync5, readFileSync as readFileSync9, writeFileSync as writeFileSync6 } from "fs";
4706
- import { dirname as dirname7, join as join9, relative as relative4, resolve as resolve13 } from "path";
4714
+ import { dirname as dirname7, join as join10, relative as relative4, resolve as resolve13 } from "path";
4707
4715
  import { createHash } from "crypto";
4708
4716
  var CACHE_DIR, angularLinkerPlugin;
4709
4717
  var init_angularLinkerPlugin = __esm(() => {
@@ -4726,7 +4734,7 @@ var init_angularLinkerPlugin = __esm(() => {
4726
4734
  return;
4727
4735
  }
4728
4736
  const hash = createHash("md5").update(source).digest("hex");
4729
- const cachePath = join9(CACHE_DIR, `${hash}.js`);
4737
+ const cachePath = join10(CACHE_DIR, `${hash}.js`);
4730
4738
  if (existsSync12(cachePath)) {
4731
4739
  return {
4732
4740
  contents: readFileSync9(cachePath, "utf-8"),
@@ -4803,7 +4811,7 @@ var init_cleanStaleOutputs = __esm(() => {
4803
4811
 
4804
4812
  // src/utils/cleanup.ts
4805
4813
  import { rm as rm3 } from "fs/promises";
4806
- import { join as join10 } from "path";
4814
+ import { join as join11 } from "path";
4807
4815
  var cleanup = async ({
4808
4816
  angularDir,
4809
4817
  reactDir,
@@ -4811,19 +4819,19 @@ var cleanup = async ({
4811
4819
  vueDir
4812
4820
  }) => {
4813
4821
  await Promise.all([
4814
- angularDir ? rm3(join10(angularDir, "generated"), {
4822
+ angularDir ? rm3(join11(angularDir, "generated"), {
4815
4823
  force: true,
4816
4824
  recursive: true
4817
4825
  }) : undefined,
4818
- reactDir ? rm3(join10(reactDir, "generated"), {
4826
+ reactDir ? rm3(join11(reactDir, "generated"), {
4819
4827
  force: true,
4820
4828
  recursive: true
4821
4829
  }) : undefined,
4822
- svelteDir ? rm3(join10(svelteDir, "generated"), {
4830
+ svelteDir ? rm3(join11(svelteDir, "generated"), {
4823
4831
  force: true,
4824
4832
  recursive: true
4825
4833
  }) : undefined,
4826
- vueDir ? rm3(join10(vueDir, "generated"), {
4834
+ vueDir ? rm3(join11(vueDir, "generated"), {
4827
4835
  force: true,
4828
4836
  recursive: true
4829
4837
  }) : undefined
@@ -4926,7 +4934,7 @@ import { existsSync as existsSync13 } from "fs";
4926
4934
  import { mkdir as mkdir2, stat } from "fs/promises";
4927
4935
  import {
4928
4936
  dirname as dirname8,
4929
- join as join11,
4937
+ join as join12,
4930
4938
  basename as basename5,
4931
4939
  extname as extname5,
4932
4940
  resolve as resolve16,
@@ -4985,14 +4993,14 @@ var resolveDevClientDir2 = () => {
4985
4993
  `${basePath}.svelte`,
4986
4994
  `${basePath}.svelte.ts`,
4987
4995
  `${basePath}.svelte.js`,
4988
- join11(basePath, "index.ts"),
4989
- join11(basePath, "index.js"),
4990
- join11(basePath, "index.mjs"),
4991
- join11(basePath, "index.cjs"),
4992
- join11(basePath, "index.json"),
4993
- join11(basePath, "index.svelte"),
4994
- join11(basePath, "index.svelte.ts"),
4995
- join11(basePath, "index.svelte.js")
4996
+ join12(basePath, "index.ts"),
4997
+ join12(basePath, "index.js"),
4998
+ join12(basePath, "index.mjs"),
4999
+ join12(basePath, "index.cjs"),
5000
+ join12(basePath, "index.json"),
5001
+ join12(basePath, "index.svelte"),
5002
+ join12(basePath, "index.svelte.ts"),
5003
+ join12(basePath, "index.svelte.js")
4996
5004
  ];
4997
5005
  const checks = await Promise.all(candidates.map(exists));
4998
5006
  return candidates.find((_, index) => checks[index]) ?? null;
@@ -5030,10 +5038,10 @@ var resolveDevClientDir2 = () => {
5030
5038
  });
5031
5039
  }, compileSvelte = async (entryPoints, svelteRoot, cache = new Map, isDev2 = false) => {
5032
5040
  const { compile, compileModule, preprocess } = await import("svelte/compiler");
5033
- const generatedDir = join11(svelteRoot, "generated");
5034
- const clientDir = join11(generatedDir, "client");
5035
- const indexDir = join11(generatedDir, "indexes");
5036
- const serverDir = join11(generatedDir, "server");
5041
+ const generatedDir = join12(svelteRoot, "generated");
5042
+ const clientDir = join12(generatedDir, "client");
5043
+ const indexDir = join12(generatedDir, "indexes");
5044
+ const serverDir = join12(generatedDir, "server");
5037
5045
  await Promise.all([clientDir, indexDir, serverDir].map((dir) => mkdir2(dir, { recursive: true })));
5038
5046
  const dev = env2.NODE_ENV !== "production";
5039
5047
  const build2 = async (src) => {
@@ -5071,8 +5079,8 @@ var resolveDevClientDir2 = () => {
5071
5079
  const childBuilt = await Promise.all(childSources.map((child) => build2(child)));
5072
5080
  const hasAwaitSlotFromChildren = childBuilt.some((child) => child.hasAwaitSlot);
5073
5081
  const externalRewrites = new Map;
5074
- const ssrOutputDir = dirname8(join11(serverDir, relDir, `${baseName}.js`));
5075
- const clientOutputDir = dirname8(join11(clientDir, relDir, `${baseName}.js`));
5082
+ const ssrOutputDir = dirname8(join12(serverDir, relDir, `${baseName}.js`));
5083
+ const clientOutputDir = dirname8(join12(clientDir, relDir, `${baseName}.js`));
5076
5084
  for (let idx = 0;idx < importPaths.length; idx++) {
5077
5085
  const rawSpec = importPaths[idx];
5078
5086
  if (!rawSpec)
@@ -5138,8 +5146,8 @@ var resolveDevClientDir2 = () => {
5138
5146
  code += islandMetadataExports;
5139
5147
  return code;
5140
5148
  };
5141
- const ssrPath = join11(serverDir, relDir, `${baseName}.js`);
5142
- const clientPath = join11(clientDir, relDir, `${baseName}.js`);
5149
+ const ssrPath = join12(serverDir, relDir, `${baseName}.js`);
5150
+ const clientPath = join12(clientDir, relDir, `${baseName}.js`);
5143
5151
  await Promise.all([
5144
5152
  mkdir2(dirname8(ssrPath), { recursive: true }),
5145
5153
  mkdir2(dirname8(clientPath), { recursive: true })
@@ -5171,7 +5179,7 @@ var resolveDevClientDir2 = () => {
5171
5179
  await Promise.all(roots.map(async ({ client: client2, hasAwaitSlot }) => {
5172
5180
  const relClientDir = dirname8(relative6(clientDir, client2));
5173
5181
  const name = basename5(client2, extname5(client2));
5174
- const indexPath = join11(indexDir, relClientDir, `${name}.js`);
5182
+ const indexPath = join12(indexDir, relClientDir, `${name}.js`);
5175
5183
  const importRaw = relative6(dirname8(indexPath), client2).split(sep2).join("/");
5176
5184
  const importPath = importRaw.startsWith(".") || importRaw.startsWith("/") ? importRaw : `./${importRaw}`;
5177
5185
  const hmrImports = isDev2 ? `window.__HMR_FRAMEWORK__ = "svelte";
@@ -5250,7 +5258,7 @@ if (typeof window !== "undefined") {
5250
5258
  svelteClientPaths: roots.map(({ client: client2 }) => client2),
5251
5259
  svelteIndexPaths: roots.map(({ client: client2 }) => {
5252
5260
  const rel = dirname8(relative6(clientDir, client2));
5253
- return join11(indexDir, rel, basename5(client2));
5261
+ return join12(indexDir, rel, basename5(client2));
5254
5262
  }),
5255
5263
  svelteServerPaths: roots.map(({ ssr }) => ssr)
5256
5264
  };
@@ -5264,7 +5272,7 @@ var init_compileSvelte = __esm(() => {
5264
5272
  init_lowerAwaitSlotSyntax();
5265
5273
  init_renderToReadableStream();
5266
5274
  devClientDir2 = resolveDevClientDir2();
5267
- hmrClientPath3 = join11(devClientDir2, "hmrClient.ts").replace(/\\/g, "/");
5275
+ hmrClientPath3 = join12(devClientDir2, "hmrClient.ts").replace(/\\/g, "/");
5268
5276
  persistentCache = new Map;
5269
5277
  sourceHashCache = new Map;
5270
5278
  transpiler2 = new Transpiler({ loader: "ts", target: "browser" });
@@ -5281,7 +5289,7 @@ __export(exports_compileVue, {
5281
5289
  });
5282
5290
  import { existsSync as existsSync14 } from "fs";
5283
5291
  import { mkdir as mkdir3 } from "fs/promises";
5284
- import { basename as basename6, dirname as dirname9, join as join12, relative as relative7, resolve as resolve17 } from "path";
5292
+ import { basename as basename6, dirname as dirname9, join as join13, relative as relative7, resolve as resolve17 } from "path";
5285
5293
  var {file: file3, write: write2, Transpiler: Transpiler2 } = globalThis.Bun;
5286
5294
  var resolveDevClientDir3 = () => {
5287
5295
  const projectRoot = process.cwd();
@@ -5437,7 +5445,7 @@ var resolveDevClientDir3 = () => {
5437
5445
  ];
5438
5446
  let cssOutputPaths = [];
5439
5447
  if (isEntryPoint && allCss.length) {
5440
- const cssOutputFile = join12(outputDirs.css, `${toKebab(fileBaseName)}-compiled.css`);
5448
+ const cssOutputFile = join13(outputDirs.css, `${toKebab(fileBaseName)}-compiled.css`);
5441
5449
  await mkdir3(dirname9(cssOutputFile), { recursive: true });
5442
5450
  await write2(cssOutputFile, allCss.join(`
5443
5451
  `));
@@ -5468,8 +5476,8 @@ if (typeof __VUE_HMR_RUNTIME__ !== 'undefined') {
5468
5476
  };
5469
5477
  const clientCode = assembleModule(generateRenderFunction(false), "render", true) + islandMetadataExports;
5470
5478
  const serverCode = assembleModule(generateRenderFunction(true), "ssrRender", false) + islandMetadataExports;
5471
- const clientOutputPath = join12(outputDirs.client, `${relativeWithoutExtension}.js`);
5472
- const serverOutputPath = join12(outputDirs.server, `${relativeWithoutExtension}.js`);
5479
+ const clientOutputPath = join13(outputDirs.client, `${relativeWithoutExtension}.js`);
5480
+ const serverOutputPath = join13(outputDirs.server, `${relativeWithoutExtension}.js`);
5473
5481
  const relDir = dirname9(relativeFilePath);
5474
5482
  const relDepth = relDir === "." ? 0 : relDir.split("/").length;
5475
5483
  const adjustImports = (code) => code.replace(/(from\s+['"])(\.\.\/(?:\.\.\/)*)/g, (_, prefix, dots) => {
@@ -5509,11 +5517,11 @@ if (typeof __VUE_HMR_RUNTIME__ !== 'undefined') {
5509
5517
  return result;
5510
5518
  }, compileVue = async (entryPoints, vueRootDir, isDev2 = false) => {
5511
5519
  const compiler = await import("@vue/compiler-sfc");
5512
- const generatedDir = join12(vueRootDir, "generated");
5513
- const clientOutputDir = join12(generatedDir, "client");
5514
- const indexOutputDir = join12(generatedDir, "indexes");
5515
- const serverOutputDir = join12(generatedDir, "server");
5516
- const cssOutputDir = join12(generatedDir, "compiled");
5520
+ const generatedDir = join13(vueRootDir, "generated");
5521
+ const clientOutputDir = join13(generatedDir, "client");
5522
+ const indexOutputDir = join13(generatedDir, "indexes");
5523
+ const serverOutputDir = join13(generatedDir, "server");
5524
+ const cssOutputDir = join13(generatedDir, "compiled");
5517
5525
  await Promise.all([
5518
5526
  mkdir3(clientOutputDir, { recursive: true }),
5519
5527
  mkdir3(indexOutputDir, { recursive: true }),
@@ -5530,8 +5538,8 @@ if (typeof __VUE_HMR_RUNTIME__ !== 'undefined') {
5530
5538
  }, buildCache, true, vueRootDir, compiler);
5531
5539
  result.tsHelperPaths.forEach((path) => allTsHelperPaths.add(path));
5532
5540
  const entryBaseName = basename6(entryPath, ".vue");
5533
- const indexOutputFile = join12(indexOutputDir, `${entryBaseName}.js`);
5534
- const clientOutputFile = join12(clientOutputDir, relative7(vueRootDir, entryPath).replace(/\\/g, "/").replace(/\.vue$/, ".js"));
5541
+ const indexOutputFile = join13(indexOutputDir, `${entryBaseName}.js`);
5542
+ const clientOutputFile = join13(clientOutputDir, relative7(vueRootDir, entryPath).replace(/\\/g, "/").replace(/\.vue$/, ".js"));
5535
5543
  await mkdir3(dirname9(indexOutputFile), { recursive: true });
5536
5544
  const vueHmrImports = isDev2 ? [
5537
5545
  `window.__HMR_FRAMEWORK__ = "vue";`,
@@ -5660,8 +5668,8 @@ if (typeof __VUE_HMR_RUNTIME__ !== 'undefined') {
5660
5668
  const sourceCode = await file3(tsPath).text();
5661
5669
  const transpiledCode = transpiler3.transformSync(sourceCode);
5662
5670
  const relativeJsPath = relative7(vueRootDir, tsPath).replace(/\.ts$/, ".js");
5663
- const outClientPath = join12(clientOutputDir, relativeJsPath);
5664
- const outServerPath = join12(serverOutputDir, relativeJsPath);
5671
+ const outClientPath = join13(clientOutputDir, relativeJsPath);
5672
+ const outServerPath = join13(serverOutputDir, relativeJsPath);
5665
5673
  await mkdir3(dirname9(outClientPath), { recursive: true });
5666
5674
  await mkdir3(dirname9(outServerPath), { recursive: true });
5667
5675
  await write2(outClientPath, transpiledCode);
@@ -5681,7 +5689,7 @@ var init_compileVue = __esm(() => {
5681
5689
  init_sourceMetadata();
5682
5690
  init_stylePreprocessor();
5683
5691
  devClientDir3 = resolveDevClientDir3();
5684
- hmrClientPath4 = join12(devClientDir3, "hmrClient.ts").replace(/\\/g, "/");
5692
+ hmrClientPath4 = join13(devClientDir3, "hmrClient.ts").replace(/\\/g, "/");
5685
5693
  transpiler3 = new Transpiler2({ loader: "ts", target: "browser" });
5686
5694
  scriptCache = new Map;
5687
5695
  scriptSetupCache = new Map;
@@ -6161,7 +6169,7 @@ __export(exports_compileAngular, {
6161
6169
  compileAngular: () => compileAngular
6162
6170
  });
6163
6171
  import { existsSync as existsSync15, readFileSync as readFileSync10, promises as fs } from "fs";
6164
- import { join as join13, basename as basename7, sep as sep3, dirname as dirname10, resolve as resolve18, relative as relative8 } from "path";
6172
+ import { join as join14, basename as basename7, sep as sep3, dirname as dirname10, resolve as resolve18, relative as relative8 } from "path";
6165
6173
  import ts2 from "typescript";
6166
6174
  import { createHash as createHash2 } from "crypto";
6167
6175
  var computeConfigHash = () => {
@@ -6272,7 +6280,7 @@ ${registrations}
6272
6280
  const originalGetSourceFile = host.getSourceFile;
6273
6281
  host.getSourceFile = (fileName, languageVersion, onError) => {
6274
6282
  if (fileName.startsWith("lib.") && fileName.endsWith(".d.ts") && tsLibDir) {
6275
- const resolvedPath = join13(tsLibDir, fileName);
6283
+ const resolvedPath = join14(tsLibDir, fileName);
6276
6284
  return originalGetSourceFile?.call(host, resolvedPath, languageVersion, onError);
6277
6285
  }
6278
6286
  return originalGetSourceFile?.call(host, fileName, languageVersion, onError);
@@ -6330,7 +6338,7 @@ ${registrations}
6330
6338
  }
6331
6339
  throwOnCompilationErrors(diagnostics);
6332
6340
  const entries = Object.entries(emitted).filter(([fileName]) => fileName.endsWith(".js")).map(([fileName, content]) => {
6333
- const target = join13(outDir, fileName);
6341
+ const target = join14(outDir, fileName);
6334
6342
  let processedContent = content.replace(/from\s+(['"])(\.\.?\/[^'"]+)(\1)/g, (match, quote, path) => {
6335
6343
  if (!path.match(/\.(js|ts|mjs|cjs)$/)) {
6336
6344
  return `from ${quote}${path}.js${quote}`;
@@ -6486,7 +6494,7 @@ ${fields}
6486
6494
  }, inlineTemplateAndLowerDefer = async (source, fileDir) => {
6487
6495
  const templateUrlMatch = source.match(/templateUrl\s*:\s*['"]([^'"]+)['"]/);
6488
6496
  if (templateUrlMatch?.[1]) {
6489
- const templatePath = join13(fileDir, templateUrlMatch[1]);
6497
+ const templatePath = join14(fileDir, templateUrlMatch[1]);
6490
6498
  if (!existsSync15(templatePath)) {
6491
6499
  return { deferSlots: [], source };
6492
6500
  }
@@ -6517,7 +6525,7 @@ ${fields}
6517
6525
  }, inlineTemplateAndLowerDeferSync = (source, fileDir) => {
6518
6526
  const templateUrlMatch = source.match(/templateUrl\s*:\s*['"]([^'"]+)['"]/);
6519
6527
  if (templateUrlMatch?.[1]) {
6520
- const templatePath = join13(fileDir, templateUrlMatch[1]);
6528
+ const templatePath = join14(fileDir, templateUrlMatch[1]);
6521
6529
  if (!existsSync15(templatePath)) {
6522
6530
  return { deferSlots: [], source };
6523
6531
  }
@@ -6559,7 +6567,7 @@ ${fields}
6559
6567
  return source;
6560
6568
  const inlinedStyles = urlMatches.map((urlMatch) => {
6561
6569
  const styleUrl = urlMatch.replace(/['"]/g, "");
6562
- return readAndEscapeFileSync(join13(fileDir, styleUrl));
6570
+ return readAndEscapeFileSync(join14(fileDir, styleUrl));
6563
6571
  }).filter(Boolean).map((escaped) => `\`${escaped}\``);
6564
6572
  if (inlinedStyles.length === 0)
6565
6573
  return source;
@@ -6568,7 +6576,7 @@ ${fields}
6568
6576
  const styleUrlMatch = source.match(/styleUrl\s*:\s*['"]([^'"]+)['"]/);
6569
6577
  if (!styleUrlMatch?.[1])
6570
6578
  return source;
6571
- const escaped = readAndEscapeFileSync(join13(fileDir, styleUrlMatch[1]));
6579
+ const escaped = readAndEscapeFileSync(join14(fileDir, styleUrlMatch[1]));
6572
6580
  if (!escaped)
6573
6581
  return source;
6574
6582
  return source.replace(/styleUrl\s*:\s*['"][^'"]+['"]/, `styles: [\`${escaped}\`]`);
@@ -6590,7 +6598,7 @@ ${fields}
6590
6598
  return source;
6591
6599
  const stylePromises = urlMatches.map((urlMatch) => {
6592
6600
  const styleUrl = urlMatch.replace(/['"]/g, "");
6593
- return readAndEscapeFile(join13(fileDir, styleUrl));
6601
+ return readAndEscapeFile(join14(fileDir, styleUrl));
6594
6602
  });
6595
6603
  const results = await Promise.all(stylePromises);
6596
6604
  const inlinedStyles = results.filter(Boolean).map((escaped) => `\`${escaped}\``);
@@ -6601,7 +6609,7 @@ ${fields}
6601
6609
  const styleUrlMatch = source.match(/styleUrl\s*:\s*['"]([^'"]+)['"]/);
6602
6610
  if (!styleUrlMatch?.[1])
6603
6611
  return source;
6604
- const escaped = await readAndEscapeFile(join13(fileDir, styleUrlMatch[1]));
6612
+ const escaped = await readAndEscapeFile(join14(fileDir, styleUrlMatch[1]));
6605
6613
  if (!escaped)
6606
6614
  return source;
6607
6615
  return source.replace(/styleUrl\s*:\s*['"][^'"]+['"]/, `styles: [\`${escaped}\`]`);
@@ -6676,8 +6684,8 @@ ${fields}
6676
6684
  const inputDir = dirname10(actualPath);
6677
6685
  const relativeDir = inputDir.startsWith(baseDir) ? inputDir.substring(baseDir.length + 1) : inputDir;
6678
6686
  const fileBase = basename7(actualPath).replace(/\.ts$/, ".js");
6679
- const targetDir = join13(outDir, relativeDir);
6680
- const targetPath = join13(targetDir, fileBase);
6687
+ const targetDir = join14(outDir, relativeDir);
6688
+ const targetPath = join14(targetDir, fileBase);
6681
6689
  const localImports = [];
6682
6690
  const fromRegex = /(?:from|import)\s+['"](\.\.?\/[^'"]+)['"]/g;
6683
6691
  const dynamicImportRegex = /import\(\s*['"](\.\.?\/[^'"]+)['"]\s*\)/g;
@@ -6710,13 +6718,13 @@ ${fields}
6710
6718
  await transpileFile(inputPath);
6711
6719
  return allOutputs;
6712
6720
  }, compileAngular = async (entryPoints, outRoot, hmr = false) => {
6713
- const compiledParent = join13(outRoot, "generated");
6721
+ const compiledParent = join14(outRoot, "generated");
6714
6722
  if (entryPoints.length === 0) {
6715
6723
  const emptyPaths = [];
6716
6724
  return { clientPaths: [...emptyPaths], serverPaths: [...emptyPaths] };
6717
6725
  }
6718
6726
  const compiledRoot = compiledParent;
6719
- const indexesDir = join13(compiledParent, "indexes");
6727
+ const indexesDir = join14(compiledParent, "indexes");
6720
6728
  await fs.mkdir(indexesDir, { recursive: true });
6721
6729
  const compileTasks = entryPoints.map(async (entry) => {
6722
6730
  const resolvedEntry = resolve18(entry);
@@ -6726,9 +6734,9 @@ ${fields}
6726
6734
  const fileBase = basename7(resolvedEntry).replace(/\.[tj]s$/, "");
6727
6735
  const jsName = `${fileBase}.js`;
6728
6736
  const compiledFallbackPaths = [
6729
- join13(compiledRoot, relativeEntry),
6730
- join13(compiledRoot, "pages", jsName),
6731
- join13(compiledRoot, jsName)
6737
+ join14(compiledRoot, relativeEntry),
6738
+ join14(compiledRoot, "pages", jsName),
6739
+ join14(compiledRoot, jsName)
6732
6740
  ].map((file4) => resolve18(file4));
6733
6741
  const resolveRawServerFile = (candidatePaths) => {
6734
6742
  const normalizedCandidates = [
@@ -6762,7 +6770,7 @@ ${fields}
6762
6770
  const componentClassName = `${toPascal(fileBase)}Component`;
6763
6771
  const serverContentHash = Bun.hash(original).toString(BASE_36_RADIX);
6764
6772
  const cachedWrapper = wrapperOutputCache.get(resolvedEntry);
6765
- const clientFile = join13(indexesDir, jsName);
6773
+ const clientFile = join14(indexesDir, jsName);
6766
6774
  if (hmr && cachedWrapper && cachedWrapper.serverHash === serverContentHash && existsSync15(clientFile)) {
6767
6775
  return {
6768
6776
  clientPath: clientFile,
@@ -6950,8 +6958,8 @@ var init_compileAngular = __esm(() => {
6950
6958
  init_lowerDeferSyntax();
6951
6959
  init_stylePreprocessor();
6952
6960
  devClientDir4 = resolveDevClientDir4();
6953
- hmrClientPath5 = join13(devClientDir4, "hmrClient.ts").replace(/\\/g, "/");
6954
- hmrRuntimePath = join13(devClientDir4, "handlers", "angularRuntime.ts").replace(/\\/g, "/");
6961
+ hmrClientPath5 = join14(devClientDir4, "hmrClient.ts").replace(/\\/g, "/");
6962
+ hmrRuntimePath = join14(devClientDir4, "handlers", "angularRuntime.ts").replace(/\\/g, "/");
6955
6963
  jitContentCache = new Map;
6956
6964
  wrapperOutputCache = new Map;
6957
6965
  });
@@ -6963,7 +6971,7 @@ __export(exports_buildReactVendor, {
6963
6971
  buildReactVendor: () => buildReactVendor
6964
6972
  });
6965
6973
  import { existsSync as existsSync16, mkdirSync as mkdirSync6 } from "fs";
6966
- import { join as join14, resolve as resolve19 } from "path";
6974
+ import { join as join15, resolve as resolve19 } from "path";
6967
6975
  import { rm as rm4 } from "fs/promises";
6968
6976
  var {build: bunBuild2 } = globalThis.Bun;
6969
6977
  var resolveJsxDevRuntimeCompatPath = () => {
@@ -7017,14 +7025,14 @@ var resolveJsxDevRuntimeCompatPath = () => {
7017
7025
  `)}
7018
7026
  `;
7019
7027
  }, buildReactVendor = async (buildDir) => {
7020
- const vendorDir = join14(buildDir, "react", "vendor");
7028
+ const vendorDir = join15(buildDir, "react", "vendor");
7021
7029
  mkdirSync6(vendorDir, { recursive: true });
7022
- const tmpDir = join14(buildDir, "_vendor_tmp");
7030
+ const tmpDir = join15(buildDir, "_vendor_tmp");
7023
7031
  mkdirSync6(tmpDir, { recursive: true });
7024
7032
  const specifiers = resolveVendorSpecifiers();
7025
7033
  const entrypoints = await Promise.all(specifiers.map(async (specifier) => {
7026
7034
  const safeName = toSafeFileName(specifier);
7027
- const entryPath = join14(tmpDir, `${safeName}.ts`);
7035
+ const entryPath = join15(tmpDir, `${safeName}.ts`);
7028
7036
  const source = await generateEntrySource(specifier);
7029
7037
  await Bun.write(entryPath, source);
7030
7038
  return entryPath;
@@ -7062,17 +7070,17 @@ __export(exports_buildAngularVendor, {
7062
7070
  buildAngularVendor: () => buildAngularVendor
7063
7071
  });
7064
7072
  import { mkdirSync as mkdirSync7 } from "fs";
7065
- import { join as join15 } from "path";
7073
+ import { join as join16 } from "path";
7066
7074
  import { rm as rm5 } from "fs/promises";
7067
7075
  var {build: bunBuild3 } = globalThis.Bun;
7068
7076
  var angularSpecifiers, toSafeFileName2 = (specifier) => specifier.replace(/^@/, "").replace(/\//g, "_"), buildAngularVendor = async (buildDir) => {
7069
- const vendorDir = join15(buildDir, "angular", "vendor");
7077
+ const vendorDir = join16(buildDir, "angular", "vendor");
7070
7078
  mkdirSync7(vendorDir, { recursive: true });
7071
- const tmpDir = join15(buildDir, "_angular_vendor_tmp");
7079
+ const tmpDir = join16(buildDir, "_angular_vendor_tmp");
7072
7080
  mkdirSync7(tmpDir, { recursive: true });
7073
7081
  const entrypoints = await Promise.all(angularSpecifiers.map(async (specifier) => {
7074
7082
  const safeName = toSafeFileName2(specifier);
7075
- const entryPath = join15(tmpDir, `${safeName}.ts`);
7083
+ const entryPath = join16(tmpDir, `${safeName}.ts`);
7076
7084
  await Bun.write(entryPath, `export * from '${specifier}';
7077
7085
  `);
7078
7086
  return entryPath;
@@ -7117,17 +7125,17 @@ __export(exports_buildVueVendor, {
7117
7125
  buildVueVendor: () => buildVueVendor
7118
7126
  });
7119
7127
  import { mkdirSync as mkdirSync8 } from "fs";
7120
- import { join as join16 } from "path";
7128
+ import { join as join17 } from "path";
7121
7129
  import { rm as rm6 } from "fs/promises";
7122
7130
  var {build: bunBuild4 } = globalThis.Bun;
7123
7131
  var vueSpecifiers, toSafeFileName3 = (specifier) => specifier.replace(/\//g, "_"), buildVueVendor = async (buildDir) => {
7124
- const vendorDir = join16(buildDir, "vue", "vendor");
7132
+ const vendorDir = join17(buildDir, "vue", "vendor");
7125
7133
  mkdirSync8(vendorDir, { recursive: true });
7126
- const tmpDir = join16(buildDir, "_vue_vendor_tmp");
7134
+ const tmpDir = join17(buildDir, "_vue_vendor_tmp");
7127
7135
  mkdirSync8(tmpDir, { recursive: true });
7128
7136
  const entrypoints = await Promise.all(vueSpecifiers.map(async (specifier) => {
7129
7137
  const safeName = toSafeFileName3(specifier);
7130
- const entryPath = join16(tmpDir, `${safeName}.ts`);
7138
+ const entryPath = join17(tmpDir, `${safeName}.ts`);
7131
7139
  await Bun.write(entryPath, `export * from '${specifier}';
7132
7140
  `);
7133
7141
  return entryPath;
@@ -7155,7 +7163,7 @@ var vueSpecifiers, toSafeFileName3 = (specifier) => specifier.replace(/\//g, "_"
7155
7163
  const { readFileSync: readFileSync11, writeFileSync: writeFileSync7, readdirSync } = await import("fs");
7156
7164
  const files = readdirSync(vendorDir).filter((f) => f.endsWith(".js"));
7157
7165
  for (const file4 of files) {
7158
- const filePath = join16(vendorDir, file4);
7166
+ const filePath = join17(vendorDir, file4);
7159
7167
  const content = readFileSync11(filePath, "utf-8");
7160
7168
  if (!content.includes("__VUE_HMR_RUNTIME__"))
7161
7169
  continue;
@@ -7182,7 +7190,7 @@ __export(exports_buildSvelteVendor, {
7182
7190
  buildSvelteVendor: () => buildSvelteVendor
7183
7191
  });
7184
7192
  import { mkdirSync as mkdirSync9 } from "fs";
7185
- import { join as join17 } from "path";
7193
+ import { join as join18 } from "path";
7186
7194
  import { rm as rm7 } from "fs/promises";
7187
7195
  var {build: bunBuild5 } = globalThis.Bun;
7188
7196
  var svelteSpecifiers, isResolvable2 = (specifier) => {
@@ -7196,13 +7204,13 @@ var svelteSpecifiers, isResolvable2 = (specifier) => {
7196
7204
  const specifiers = resolveVendorSpecifiers2();
7197
7205
  if (specifiers.length === 0)
7198
7206
  return;
7199
- const vendorDir = join17(buildDir, "svelte", "vendor");
7207
+ const vendorDir = join18(buildDir, "svelte", "vendor");
7200
7208
  mkdirSync9(vendorDir, { recursive: true });
7201
- const tmpDir = join17(buildDir, "_svelte_vendor_tmp");
7209
+ const tmpDir = join18(buildDir, "_svelte_vendor_tmp");
7202
7210
  mkdirSync9(tmpDir, { recursive: true });
7203
7211
  const entrypoints = await Promise.all(specifiers.map(async (specifier) => {
7204
7212
  const safeName = toSafeFileName4(specifier);
7205
- const entryPath = join17(tmpDir, `${safeName}.ts`);
7213
+ const entryPath = join18(tmpDir, `${safeName}.ts`);
7206
7214
  await Bun.write(entryPath, `export * from '${specifier}';
7207
7215
  `);
7208
7216
  return entryPath;
@@ -7286,7 +7294,7 @@ import {
7286
7294
  statSync,
7287
7295
  writeFileSync as writeFileSync7
7288
7296
  } from "fs";
7289
- import { basename as basename8, dirname as dirname11, join as join18, relative as relative9, resolve as resolve20 } from "path";
7297
+ import { basename as basename8, dirname as dirname11, join as join19, relative as relative9, resolve as resolve20 } from "path";
7290
7298
  import { cwd, env as env3, exit } from "process";
7291
7299
  var {build: bunBuild6, Glob: Glob6 } = globalThis.Bun;
7292
7300
  var isDev2, collectConventionSourceFiles = (entry) => {
@@ -7361,8 +7369,8 @@ var isDev2, collectConventionSourceFiles = (entry) => {
7361
7369
  mkdirSync10(htmxDestDir, { recursive: true });
7362
7370
  const glob = new Glob6("htmx*.min.js");
7363
7371
  for (const relPath of glob.scanSync({ cwd: htmxDir })) {
7364
- const src = join18(htmxDir, relPath);
7365
- const dest = join18(htmxDestDir, "htmx.min.js");
7372
+ const src = join19(htmxDir, relPath);
7373
+ const dest = join19(htmxDestDir, "htmx.min.js");
7366
7374
  copyFileSync(src, dest);
7367
7375
  return;
7368
7376
  }
@@ -7435,7 +7443,7 @@ var isDev2, collectConventionSourceFiles = (entry) => {
7435
7443
  vuePagesPath
7436
7444
  }) => {
7437
7445
  const { readdirSync: readDir } = await import("fs");
7438
- const devIndexDir = join18(buildPath, "_src_indexes");
7446
+ const devIndexDir = join19(buildPath, "_src_indexes");
7439
7447
  mkdirSync10(devIndexDir, { recursive: true });
7440
7448
  if (reactIndexesPath && reactPagesPath) {
7441
7449
  copyReactDevIndexes(reactIndexesPath, reactPagesPath, devIndexDir, readDir);
@@ -7453,35 +7461,35 @@ var isDev2, collectConventionSourceFiles = (entry) => {
7453
7461
  const indexFiles = readDir(reactIndexesPath).filter((file4) => file4.endsWith(".tsx"));
7454
7462
  const pagesRel = relative9(process.cwd(), resolve20(reactPagesPath)).replace(/\\/g, "/");
7455
7463
  for (const file4 of indexFiles) {
7456
- let content = readFileSync11(join18(reactIndexesPath, file4), "utf-8");
7464
+ let content = readFileSync11(join19(reactIndexesPath, file4), "utf-8");
7457
7465
  content = content.replace(/from\s*['"]([^'"]*\/pages\/([^'"]+))['"]/g, (_match, _fullPath, componentName) => `from '/@src/${pagesRel}/${componentName}'`);
7458
- writeFileSync7(join18(devIndexDir, file4), content);
7466
+ writeFileSync7(join19(devIndexDir, file4), content);
7459
7467
  }
7460
7468
  }, copySvelteDevIndexes = (svelteDir, sveltePagesPath, svelteEntries, devIndexDir) => {
7461
- const svelteIndexDir = join18(svelteDir, "generated", "indexes");
7469
+ const svelteIndexDir = join19(svelteDir, "generated", "indexes");
7462
7470
  const sveltePageEntries = svelteEntries.filter((file4) => resolve20(file4).startsWith(resolve20(sveltePagesPath)));
7463
7471
  for (const entry of sveltePageEntries) {
7464
7472
  const name = basename8(entry).replace(/\.svelte(\.(ts|js))?$/, "");
7465
- const indexFile = join18(svelteIndexDir, "pages", `${name}.js`);
7473
+ const indexFile = join19(svelteIndexDir, "pages", `${name}.js`);
7466
7474
  if (!existsSync17(indexFile))
7467
7475
  continue;
7468
7476
  let content = readFileSync11(indexFile, "utf-8");
7469
7477
  const srcRel = relative9(process.cwd(), resolve20(entry)).replace(/\\/g, "/");
7470
7478
  content = content.replace(/import\s+Component\s+from\s+['"]([^'"]+)['"]/, `import Component from "/@src/${srcRel}"`);
7471
- writeFileSync7(join18(devIndexDir, `${name}.svelte.js`), content);
7479
+ writeFileSync7(join19(devIndexDir, `${name}.svelte.js`), content);
7472
7480
  }
7473
7481
  }, copyVueDevIndexes = (vueDir, vuePagesPath, vueEntries, devIndexDir) => {
7474
- const vueIndexDir = join18(vueDir, "generated", "indexes");
7482
+ const vueIndexDir = join19(vueDir, "generated", "indexes");
7475
7483
  const vuePageEntries = vueEntries.filter((file4) => resolve20(file4).startsWith(resolve20(vuePagesPath)));
7476
7484
  for (const entry of vuePageEntries) {
7477
7485
  const name = basename8(entry, ".vue");
7478
- const indexFile = join18(vueIndexDir, `${name}.js`);
7486
+ const indexFile = join19(vueIndexDir, `${name}.js`);
7479
7487
  if (!existsSync17(indexFile))
7480
7488
  continue;
7481
7489
  let content = readFileSync11(indexFile, "utf-8");
7482
7490
  const srcRel = relative9(process.cwd(), resolve20(entry)).replace(/\\/g, "/");
7483
7491
  content = content.replace(/import\s+Comp\s+from\s+['"]([^'"]+)['"]/, `import Comp from "/@src/${srcRel}"`);
7484
- writeFileSync7(join18(devIndexDir, `${name}.vue.js`), content);
7492
+ writeFileSync7(join19(devIndexDir, `${name}.vue.js`), content);
7485
7493
  }
7486
7494
  }, resolveVueRuntimeId = (content, firstUseName, outputPath, projectRoot) => {
7487
7495
  const varIdx = content.indexOf(`var ${firstUseName} =`);
@@ -7629,14 +7637,14 @@ ${content.slice(firstUseIdx)}`;
7629
7637
  const stylesPath = typeof stylesConfig === "string" ? stylesConfig : stylesConfig?.path;
7630
7638
  const stylesIgnore = typeof stylesConfig === "object" ? stylesConfig.ignore : undefined;
7631
7639
  const stylesDir = stylesPath && validateSafePath(stylesPath, projectRoot);
7632
- const reactIndexesPath = reactDir && join18(reactDir, "generated", "indexes");
7633
- const reactPagesPath = reactDir && join18(reactDir, "pages");
7634
- const htmlPagesPath = htmlDir && join18(htmlDir, "pages");
7635
- const htmlScriptsPath = htmlDir && join18(htmlDir, "scripts");
7636
- const sveltePagesPath = svelteDir && join18(svelteDir, "pages");
7637
- const vuePagesPath = vueDir && join18(vueDir, "pages");
7638
- const htmxPagesPath = htmxDir && join18(htmxDir, "pages");
7639
- const angularPagesPath = angularDir && join18(angularDir, "pages");
7640
+ const reactIndexesPath = reactDir && join19(reactDir, "generated", "indexes");
7641
+ const reactPagesPath = reactDir && join19(reactDir, "pages");
7642
+ const htmlPagesPath = htmlDir && join19(htmlDir, "pages");
7643
+ const htmlScriptsPath = htmlDir && join19(htmlDir, "scripts");
7644
+ const sveltePagesPath = svelteDir && join19(svelteDir, "pages");
7645
+ const vuePagesPath = vueDir && join19(vueDir, "pages");
7646
+ const htmxPagesPath = htmxDir && join19(htmxDir, "pages");
7647
+ const angularPagesPath = angularDir && join19(angularDir, "pages");
7640
7648
  const frontends = [
7641
7649
  reactDir,
7642
7650
  htmlDir,
@@ -7673,12 +7681,12 @@ ${content.slice(firstUseIdx)}`;
7673
7681
  if (svelteDir)
7674
7682
  serverDirMap.push({
7675
7683
  dir: svelteDir,
7676
- subdir: join18("generated", "server")
7684
+ subdir: join19("generated", "server")
7677
7685
  });
7678
7686
  if (vueDir)
7679
7687
  serverDirMap.push({
7680
7688
  dir: vueDir,
7681
- subdir: join18("generated", "server")
7689
+ subdir: join19("generated", "server")
7682
7690
  });
7683
7691
  if (angularDir)
7684
7692
  serverDirMap.push({ dir: angularDir, subdir: "generated" });
@@ -7688,8 +7696,8 @@ ${content.slice(firstUseIdx)}`;
7688
7696
  const [firstEntry] = serverDirMap;
7689
7697
  if (!firstEntry)
7690
7698
  throw new Error("Expected at least one server directory entry");
7691
- serverRoot = join18(firstEntry.dir, firstEntry.subdir);
7692
- serverOutDir = join18(buildPath, basename8(firstEntry.dir));
7699
+ serverRoot = join19(firstEntry.dir, firstEntry.subdir);
7700
+ serverOutDir = join19(buildPath, basename8(firstEntry.dir));
7693
7701
  } else if (serverDirMap.length > 1) {
7694
7702
  serverRoot = commonAncestor(serverDirMap.map((entry) => entry.dir), projectRoot);
7695
7703
  serverOutDir = buildPath;
@@ -7717,7 +7725,7 @@ ${content.slice(firstUseIdx)}`;
7717
7725
  await generateReactIndexFiles(reactPagesPath, reactIndexesPath, hmr);
7718
7726
  }
7719
7727
  if (assetsPath && (!isIncremental || normalizedIncrementalFiles?.some((f) => f.includes("/assets/")))) {
7720
- cpSync(assetsPath, join18(buildPath, "assets"), {
7728
+ cpSync(assetsPath, join19(buildPath, "assets"), {
7721
7729
  force: true,
7722
7730
  recursive: true
7723
7731
  });
@@ -7731,7 +7739,7 @@ ${content.slice(firstUseIdx)}`;
7731
7739
  } catch {
7732
7740
  binPath = "tailwindcss";
7733
7741
  }
7734
- const proc = Bun.spawn(["bun", binPath, "-i", input, "-o", join18(buildPath, output)], { stderr: "pipe", stdout: "pipe" });
7742
+ const proc = Bun.spawn(["bun", binPath, "-i", input, "-o", join19(buildPath, output)], { stderr: "pipe", stdout: "pipe" });
7735
7743
  await proc.exited;
7736
7744
  };
7737
7745
  const tailwindPromise = tailwind && (!isIncremental || normalizedIncrementalFiles?.some(isStylePath)) ? compileTailwind(tailwind.input, tailwind.output) : undefined;
@@ -7778,7 +7786,7 @@ ${content.slice(firstUseIdx)}`;
7778
7786
  const reactEntries = isIncremental && reactIndexesPath && reactPagesPath ? filterToIncrementalEntries(allReactEntries, (entry) => {
7779
7787
  if (entry.startsWith(resolve20(reactIndexesPath))) {
7780
7788
  const pageName = basename8(entry, ".tsx");
7781
- return join18(reactPagesPath, `${pageName}.tsx`);
7789
+ return join19(reactPagesPath, `${pageName}.tsx`);
7782
7790
  }
7783
7791
  return null;
7784
7792
  }) : allReactEntries;
@@ -7865,11 +7873,11 @@ ${content.slice(firstUseIdx)}`;
7865
7873
  vueConventionSources.length > 0 && vueDir ? Promise.resolve().then(() => (init_compileVue(), exports_compileVue)).then((mod) => mod.compileVue(vueConventionSources, vueDir, false)) : { vueServerPaths: emptyStringArray }
7866
7874
  ]);
7867
7875
  const copyConventionFiles = (framework, sources, compiledPaths) => {
7868
- const destDir = join18(buildPath, "conventions", framework);
7876
+ const destDir = join19(buildPath, "conventions", framework);
7869
7877
  mkdirSync10(destDir, { recursive: true });
7870
7878
  const destPaths = [];
7871
7879
  for (const compiledPath of compiledPaths) {
7872
- const dest = join18(destDir, basename8(compiledPath));
7880
+ const dest = join19(destDir, basename8(compiledPath));
7873
7881
  copyFileSync(compiledPath, dest);
7874
7882
  destPaths.push(dest);
7875
7883
  }
@@ -7915,7 +7923,7 @@ ${content.slice(firstUseIdx)}`;
7915
7923
  }
7916
7924
  }) : {
7917
7925
  entries: [],
7918
- generatedRoot: join18(buildPath, "_island_entries")
7926
+ generatedRoot: join19(buildPath, "_island_entries")
7919
7927
  };
7920
7928
  const islandClientEntryPoints = islandEntryResult.entries.map((entry) => entry.entryPath);
7921
7929
  if (serverEntryPoints.length === 0 && reactClientEntryPoints.length === 0 && nonReactClientEntryPoints.length === 0 && islandClientEntryPoints.length === 0 && htmxDir === undefined && htmlDir === undefined) {
@@ -7950,7 +7958,7 @@ ${content.slice(firstUseIdx)}`;
7950
7958
  return {};
7951
7959
  }
7952
7960
  if (hmr && reactIndexesPath && reactClientEntryPoints.length > 0) {
7953
- const refreshEntry = join18(reactIndexesPath, "_refresh.tsx");
7961
+ const refreshEntry = join19(reactIndexesPath, "_refresh.tsx");
7954
7962
  if (!reactClientEntryPoints.includes(refreshEntry))
7955
7963
  reactClientEntryPoints.push(refreshEntry);
7956
7964
  }
@@ -8005,19 +8013,19 @@ ${content.slice(firstUseIdx)}`;
8005
8013
  throw: false
8006
8014
  } : undefined;
8007
8015
  if (reactDir && reactClientEntryPoints.length > 0) {
8008
- rmSync2(join18(buildPath, "react", "generated", "indexes"), {
8016
+ rmSync2(join19(buildPath, "react", "generated", "indexes"), {
8009
8017
  force: true,
8010
8018
  recursive: true
8011
8019
  });
8012
8020
  }
8013
8021
  if (angularDir && angularClientPaths.length > 0) {
8014
- rmSync2(join18(buildPath, "angular", "indexes"), {
8022
+ rmSync2(join19(buildPath, "angular", "indexes"), {
8015
8023
  force: true,
8016
8024
  recursive: true
8017
8025
  });
8018
8026
  }
8019
8027
  if (islandClientEntryPoints.length > 0) {
8020
- rmSync2(join18(buildPath, "islands"), {
8028
+ rmSync2(join19(buildPath, "islands"), {
8021
8029
  force: true,
8022
8030
  recursive: true
8023
8031
  });
@@ -8103,7 +8111,7 @@ ${content.slice(firstUseIdx)}`;
8103
8111
  globalCssEntries.length > 0 ? bunBuild6({
8104
8112
  entrypoints: globalCssEntries,
8105
8113
  naming: `[dir]/[name].[hash].[ext]`,
8106
- outdir: stylesDir ? join18(buildPath, basename8(stylesDir)) : buildPath,
8114
+ outdir: stylesDir ? join19(buildPath, basename8(stylesDir)) : buildPath,
8107
8115
  root: stylesDir || clientRoot,
8108
8116
  target: "browser",
8109
8117
  plugins: [stylePreprocessorPlugin],
@@ -8112,7 +8120,7 @@ ${content.slice(firstUseIdx)}`;
8112
8120
  vueCssPaths.length > 0 ? bunBuild6({
8113
8121
  entrypoints: vueCssPaths,
8114
8122
  naming: `[name].[hash].[ext]`,
8115
- outdir: join18(buildPath, assetsPath ? basename8(assetsPath) : "assets", "css"),
8123
+ outdir: join19(buildPath, assetsPath ? basename8(assetsPath) : "assets", "css"),
8116
8124
  target: "browser",
8117
8125
  throw: false
8118
8126
  }) : undefined
@@ -8245,7 +8253,7 @@ ${content.slice(firstUseIdx)}`;
8245
8253
  const processHtmlPages = async () => {
8246
8254
  if (!(htmlDir && htmlPagesPath))
8247
8255
  return;
8248
- const outputHtmlPages = isSingle ? join18(buildPath, "pages") : join18(buildPath, basename8(htmlDir), "pages");
8256
+ const outputHtmlPages = isSingle ? join19(buildPath, "pages") : join19(buildPath, basename8(htmlDir), "pages");
8249
8257
  mkdirSync10(outputHtmlPages, { recursive: true });
8250
8258
  cpSync(htmlPagesPath, outputHtmlPages, {
8251
8259
  force: true,
@@ -8267,14 +8275,14 @@ ${content.slice(firstUseIdx)}`;
8267
8275
  const processHtmxPages = async () => {
8268
8276
  if (!(htmxDir && htmxPagesPath))
8269
8277
  return;
8270
- const outputHtmxPages = isSingle ? join18(buildPath, "pages") : join18(buildPath, basename8(htmxDir), "pages");
8278
+ const outputHtmxPages = isSingle ? join19(buildPath, "pages") : join19(buildPath, basename8(htmxDir), "pages");
8271
8279
  mkdirSync10(outputHtmxPages, { recursive: true });
8272
8280
  cpSync(htmxPagesPath, outputHtmxPages, {
8273
8281
  force: true,
8274
8282
  recursive: true
8275
8283
  });
8276
8284
  if (shouldCopyHtmx) {
8277
- const htmxDestDir = isSingle ? buildPath : join18(buildPath, basename8(htmxDir));
8285
+ const htmxDestDir = isSingle ? buildPath : join19(buildPath, basename8(htmxDir));
8278
8286
  copyHtmxVendor(htmxDir, htmxDestDir);
8279
8287
  }
8280
8288
  if (shouldUpdateHtmxAssetPaths) {
@@ -8329,9 +8337,9 @@ ${content.slice(firstUseIdx)}`;
8329
8337
  });
8330
8338
  if (isIncremental)
8331
8339
  return { conventions: conventionsMap, manifest };
8332
- writeFileSync7(join18(buildPath, "manifest.json"), JSON.stringify(manifest, null, "\t"));
8340
+ writeFileSync7(join19(buildPath, "manifest.json"), JSON.stringify(manifest, null, "\t"));
8333
8341
  if (Object.keys(conventionsMap).length > 0) {
8334
- writeFileSync7(join18(buildPath, "conventions.json"), JSON.stringify(conventionsMap, null, "\t"));
8342
+ writeFileSync7(join19(buildPath, "conventions.json"), JSON.stringify(conventionsMap, null, "\t"));
8335
8343
  }
8336
8344
  return { conventions: conventionsMap, manifest };
8337
8345
  };
@@ -8853,7 +8861,7 @@ var init_pathUtils = __esm(() => {
8853
8861
  // src/dev/fileWatcher.ts
8854
8862
  import { watch } from "fs";
8855
8863
  import { existsSync as existsSync19 } from "fs";
8856
- import { join as join19, resolve as resolve23 } from "path";
8864
+ import { join as join20, resolve as resolve23 } from "path";
8857
8865
  var safeRemoveFromGraph = (graph, fullPath) => {
8858
8866
  try {
8859
8867
  removeFileFromGraph(graph, fullPath);
@@ -8880,7 +8888,7 @@ var safeRemoveFromGraph = (graph, fullPath) => {
8880
8888
  if (shouldSkipFilename(filename, isStylesDir)) {
8881
8889
  return;
8882
8890
  }
8883
- const fullPath = join19(absolutePath, filename).replace(/\\/g, "/");
8891
+ const fullPath = join20(absolutePath, filename).replace(/\\/g, "/");
8884
8892
  if (shouldIgnorePath(fullPath, state.resolvedPaths)) {
8885
8893
  return;
8886
8894
  }
@@ -9395,15 +9403,15 @@ var escapeHtml = (str) => String(str).replace(/&/g, "&amp;").replace(/</g, "&lt;
9395
9403
  import { AsyncLocalStorage as AsyncLocalStorage3 } from "async_hooks";
9396
9404
  import { mkdir as mkdir4, symlink } from "fs/promises";
9397
9405
  import { tmpdir } from "os";
9398
- import { basename as basename10, dirname as dirname12, join as join20, resolve as resolve27 } from "path";
9406
+ import { basename as basename10, dirname as dirname12, join as join21, resolve as resolve27 } from "path";
9399
9407
  var ssrDirty2 = false, lastSelector = "angular-page", isRecord8 = (value) => typeof value === "object" && value !== null, isAngularComponent = (value) => typeof value === "function", compilerImportPromise = null, ensureAngularCompiler = () => {
9400
9408
  if (!compilerImportPromise) {
9401
9409
  compilerImportPromise = import("@angular/compiler");
9402
9410
  }
9403
9411
  return compilerImportPromise;
9404
- }, readAngularPageModule = (value) => isRecord8(value) ? value : null, resolveAngularSsrOutDir = () => process.env.ABSOLUTE_ANGULAR_SSR_OUTDIR ?? join20(tmpdir(), "absolutejs", "generated", "angular-ssr"), ensureAngularSsrNodeModules = async (outDir) => {
9412
+ }, readAngularPageModule = (value) => isRecord8(value) ? value : null, resolveAngularSsrOutDir = () => process.env.ABSOLUTE_ANGULAR_SSR_OUTDIR ?? join21(tmpdir(), "absolutejs", "generated", "angular-ssr"), ensureAngularSsrNodeModules = async (outDir) => {
9405
9413
  const outRoot = resolve27(dirname12(dirname12(outDir)));
9406
- const nodeModulesLink = join20(outRoot, "node_modules");
9414
+ const nodeModulesLink = join21(outRoot, "node_modules");
9407
9415
  if (process.env.ABSOLUTE_ANGULAR_SSR_OUTDIR) {
9408
9416
  return;
9409
9417
  }
@@ -12160,7 +12168,7 @@ __export(exports_buildDepVendor, {
12160
12168
  buildDepVendor: () => buildDepVendor
12161
12169
  });
12162
12170
  import { mkdirSync as mkdirSync11 } from "fs";
12163
- import { join as join21 } from "path";
12171
+ import { join as join22 } from "path";
12164
12172
  import { rm as rm8 } from "fs/promises";
12165
12173
  var {build: bunBuild7, Glob: Glob8 } = globalThis.Bun;
12166
12174
  var toSafeFileName5 = (specifier) => specifier.replace(/\//g, "_").replace(/@/g, "").replace(/-/g, "_"), isResolvable3 = (specifier) => {
@@ -12210,7 +12218,7 @@ var toSafeFileName5 = (specifier) => specifier.replace(/\//g, "_").replace(/@/g,
12210
12218
  }, content);
12211
12219
  const files = readdirSync2(vendorDir).filter((f) => f.endsWith(".js"));
12212
12220
  for (const file4 of files) {
12213
- const filePath = join21(vendorDir, file4);
12221
+ const filePath = join22(vendorDir, file4);
12214
12222
  const original = readFileSync15(filePath, "utf-8");
12215
12223
  const rewritten = rewriteContent(original);
12216
12224
  if (rewritten !== original)
@@ -12220,13 +12228,13 @@ var toSafeFileName5 = (specifier) => specifier.replace(/\//g, "_").replace(/@/g,
12220
12228
  const specifiers = await scanBareImports(directories);
12221
12229
  if (specifiers.length === 0)
12222
12230
  return {};
12223
- const vendorDir = join21(buildDir, "vendor");
12231
+ const vendorDir = join22(buildDir, "vendor");
12224
12232
  mkdirSync11(vendorDir, { recursive: true });
12225
- const tmpDir = join21(buildDir, "_dep_vendor_tmp");
12233
+ const tmpDir = join22(buildDir, "_dep_vendor_tmp");
12226
12234
  mkdirSync11(tmpDir, { recursive: true });
12227
12235
  const entrypoints = await Promise.all(specifiers.map(async (specifier) => {
12228
12236
  const safeName = toSafeFileName5(specifier);
12229
- const entryPath = join21(tmpDir, `${safeName}.ts`);
12237
+ const entryPath = join22(tmpDir, `${safeName}.ts`);
12230
12238
  const source = await generateEntrySource2(specifier);
12231
12239
  await Bun.write(entryPath, source);
12232
12240
  return entryPath;
@@ -12724,12 +12732,12 @@ __export(exports_devtoolsJson, {
12724
12732
  devtoolsJson: () => devtoolsJson
12725
12733
  });
12726
12734
  import { existsSync as existsSync22, mkdirSync as mkdirSync12, readFileSync as readFileSync15, writeFileSync as writeFileSync8 } from "fs";
12727
- import { dirname as dirname17, join as join22, resolve as resolve33 } from "path";
12735
+ import { dirname as dirname17, join as join23, resolve as resolve33 } from "path";
12728
12736
  import { Elysia as Elysia3 } from "elysia";
12729
12737
  var ENDPOINT = "/.well-known/appspecific/com.chrome.devtools.json", UUID_CACHE_KEY = "__absoluteDevtoolsWorkspaceUuid", getGlobalUuid = () => Reflect.get(globalThis, UUID_CACHE_KEY), setGlobalUuid = (uuid) => {
12730
12738
  Reflect.set(globalThis, UUID_CACHE_KEY, uuid);
12731
12739
  return uuid;
12732
- }, isUuidV4 = (value) => /^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(value), resolveDevtoolsUuidCachePath = (buildDir, uuidCachePath) => resolve33(uuidCachePath ?? join22(buildDir, ".absolute", "chrome-devtools-workspace-uuid")), readCachedUuid = (cachePath) => {
12740
+ }, isUuidV4 = (value) => /^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(value), resolveDevtoolsUuidCachePath = (buildDir, uuidCachePath) => resolve33(uuidCachePath ?? join23(buildDir, ".absolute", "chrome-devtools-workspace-uuid")), readCachedUuid = (cachePath) => {
12733
12741
  if (!existsSync22(cachePath))
12734
12742
  return null;
12735
12743
  try {
@@ -12768,11 +12776,11 @@ var ENDPOINT = "/.well-known/appspecific/com.chrome.devtools.json", UUID_CACHE_K
12768
12776
  if (process.env.WSL_DISTRO_NAME) {
12769
12777
  const distro = process.env.WSL_DISTRO_NAME;
12770
12778
  const withoutLeadingSlash = root.replace(/^\//, "");
12771
- return join22("\\\\wsl.localhost", distro, withoutLeadingSlash).replace(/\//g, "\\");
12779
+ return join23("\\\\wsl.localhost", distro, withoutLeadingSlash).replace(/\//g, "\\");
12772
12780
  }
12773
12781
  if (process.env.DOCKER_DESKTOP && !root.startsWith("\\\\")) {
12774
12782
  const withoutLeadingSlash = root.replace(/^\//, "");
12775
- return join22("\\\\wsl.localhost", "docker-desktop-data", withoutLeadingSlash).replace(/\//g, "\\");
12783
+ return join23("\\\\wsl.localhost", "docker-desktop-data", withoutLeadingSlash).replace(/\//g, "\\");
12776
12784
  }
12777
12785
  return root;
12778
12786
  };
@@ -13089,7 +13097,7 @@ __export(exports_prerender, {
13089
13097
  PRERENDER_BYPASS_HEADER: () => PRERENDER_BYPASS_HEADER
13090
13098
  });
13091
13099
  import { mkdirSync as mkdirSync13, readFileSync as readFileSync16 } from "fs";
13092
- import { join as join23 } from "path";
13100
+ import { join as join24 } from "path";
13093
13101
  var MAX_STARTUP_ATTEMPTS = 50, STARTUP_POLL_INTERVAL_MS = 100, PRERENDER_BYPASS_HEADER = "X-Absolute-Prerender-Bypass", routeToFilename = (route) => route === "/" ? "index.html" : `${route.slice(1).replace(/\//g, "-")}.html`, writeTimestamp = async (htmlPath) => {
13094
13102
  const metaPath = htmlPath.replace(/\.html$/, ".meta");
13095
13103
  await Bun.write(metaPath, String(Date.now()));
@@ -13145,7 +13153,7 @@ var MAX_STARTUP_ATTEMPTS = 50, STARTUP_POLL_INTERVAL_MS = 100, PRERENDER_BYPASS_
13145
13153
  return false;
13146
13154
  const html = await res.text();
13147
13155
  const fileName = routeToFilename(route);
13148
- const filePath = join23(prerenderDir, fileName);
13156
+ const filePath = join24(prerenderDir, fileName);
13149
13157
  await Bun.write(filePath, html);
13150
13158
  await writeTimestamp(filePath);
13151
13159
  return true;
@@ -13164,13 +13172,13 @@ var MAX_STARTUP_ATTEMPTS = 50, STARTUP_POLL_INTERVAL_MS = 100, PRERENDER_BYPASS_
13164
13172
  }
13165
13173
  const html = await res.text();
13166
13174
  const fileName = routeToFilename(route);
13167
- const filePath = join23(prerenderDir, fileName);
13175
+ const filePath = join24(prerenderDir, fileName);
13168
13176
  await Bun.write(filePath, html);
13169
13177
  await writeTimestamp(filePath);
13170
13178
  result.routes.set(route, filePath);
13171
13179
  log2?.(` Pre-rendered ${route} \u2192 ${fileName} (${html.length} bytes)`);
13172
13180
  }, prerender = async (port, outDir, staticConfig, log2) => {
13173
- const prerenderDir = join23(outDir, "_prerendered");
13181
+ const prerenderDir = join24(outDir, "_prerendered");
13174
13182
  mkdirSync13(prerenderDir, { recursive: true });
13175
13183
  const baseUrl = `http://localhost:${port}`;
13176
13184
  let routes;
@@ -13437,7 +13445,7 @@ var handleHTMXPageRequest = async (pagePath) => {
13437
13445
  };
13438
13446
  // src/core/prepare.ts
13439
13447
  import { existsSync as existsSync24, readdirSync as readdirSync2, readFileSync as readFileSync17 } from "fs";
13440
- import { basename as basename14, join as join24, relative as relative12, resolve as resolve35 } from "path";
13448
+ import { basename as basename14, join as join25, relative as relative12, resolve as resolve35 } from "path";
13441
13449
  import { Elysia as Elysia5 } from "elysia";
13442
13450
 
13443
13451
  // src/utils/loadConfig.ts
@@ -13758,7 +13766,7 @@ var loadPrerenderMap = (prerenderDir) => {
13758
13766
  continue;
13759
13767
  const name = basename14(entry, ".html");
13760
13768
  const route = name === "index" ? "/" : `/${name}`;
13761
- map.set(route, join24(prerenderDir, entry));
13769
+ map.set(route, join25(prerenderDir, entry));
13762
13770
  }
13763
13771
  return map;
13764
13772
  };
@@ -13806,7 +13814,7 @@ var prepare = async (configOrPath) => {
13806
13814
  setCurrentPageIslandMetadata(await loadPageIslandMetadata(config));
13807
13815
  recordStep("load production manifest and island metadata", stepStartedAt);
13808
13816
  stepStartedAt = performance.now();
13809
- const conventionsPath = join24(buildDir, "conventions.json");
13817
+ const conventionsPath = join25(buildDir, "conventions.json");
13810
13818
  if (existsSync24(conventionsPath)) {
13811
13819
  const conventions2 = JSON.parse(readFileSync17(conventionsPath, "utf-8"));
13812
13820
  setConventions(conventions2);
@@ -13822,7 +13830,7 @@ var prepare = async (configOrPath) => {
13822
13830
  });
13823
13831
  recordStep("create static plugin", stepStartedAt);
13824
13832
  stepStartedAt = performance.now();
13825
- const prerenderDir = join24(buildDir, "_prerendered");
13833
+ const prerenderDir = join25(buildDir, "_prerendered");
13826
13834
  const prerenderMap = loadPrerenderMap(prerenderDir);
13827
13835
  recordStep("load prerender map", stepStartedAt);
13828
13836
  if (prerenderMap.size > 0) {
@@ -13878,10 +13886,10 @@ var {env: env4 } = globalThis.Bun;
13878
13886
 
13879
13887
  // src/dev/devCert.ts
13880
13888
  import { existsSync as existsSync25, mkdirSync as mkdirSync14, readFileSync as readFileSync18, rmSync as rmSync3 } from "fs";
13881
- import { join as join25 } from "path";
13882
- var CERT_DIR = join25(process.cwd(), ".absolutejs");
13883
- var CERT_PATH = join25(CERT_DIR, "cert.pem");
13884
- var KEY_PATH = join25(CERT_DIR, "key.pem");
13889
+ import { join as join26 } from "path";
13890
+ var CERT_DIR = join26(process.cwd(), ".absolutejs");
13891
+ var CERT_PATH = join26(CERT_DIR, "cert.pem");
13892
+ var KEY_PATH = join26(CERT_DIR, "key.pem");
13885
13893
  var CERT_VALIDITY_DAYS = 365;
13886
13894
  var devLog = (msg) => console.log(`\x1B[2m${new Date().toLocaleTimeString()}\x1B[0m \x1B[36m[dev]\x1B[0m ${msg}`);
13887
13895
  var devWarn = (msg) => console.log(`\x1B[2m${new Date().toLocaleTimeString()}\x1B[0m \x1B[33m[dev]\x1B[0m \x1B[33m${msg}\x1B[0m`);
@@ -20468,5 +20476,5 @@ export {
20468
20476
  ANGULAR_INIT_TIMEOUT_MS
20469
20477
  };
20470
20478
 
20471
- //# debugId=6C9DFD7661C7542C64756E2164756E21
20479
+ //# debugId=C5012A232FC76DFE64756E2164756E21
20472
20480
  //# sourceMappingURL=index.js.map