@absolutejs/absolute 0.19.0-beta.187 → 0.19.0-beta.189

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/src/build.js CHANGED
@@ -748,7 +748,7 @@ var init_scanCssEntryPoints = () => {};
748
748
 
749
749
  // src/utils/imageProcessing.ts
750
750
  import { existsSync as existsSync4, mkdirSync as mkdirSync2, readFileSync, writeFileSync } from "fs";
751
- import { join as join2 } from "path";
751
+ import { join as join2, resolve as resolve2 } from "path";
752
752
  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) => {
753
753
  for (const size of sizes) {
754
754
  if (size >= target)
@@ -871,8 +871,8 @@ var DEFAULT_DEVICE_SIZES, DEFAULT_IMAGE_SIZES, DEFAULT_QUALITY = 75, OPTIMIZATIO
871
871
  return sharpModule;
872
872
  sharpLoaded = true;
873
873
  try {
874
- const name = "sharp";
875
- const mod = await import(name);
874
+ const sharpPath = resolve2(process.cwd(), "node_modules/sharp");
875
+ const mod = await import(sharpPath);
876
876
  sharpModule = mod.default ?? mod;
877
877
  return sharpModule;
878
878
  } catch {
@@ -1115,18 +1115,18 @@ var init_updateAssetPaths = __esm(() => {
1115
1115
 
1116
1116
  // src/dev/buildHMRClient.ts
1117
1117
  import { existsSync as existsSync7 } from "fs";
1118
- import { resolve as resolve2 } from "path";
1118
+ import { resolve as resolve3 } from "path";
1119
1119
  var {build: bunBuild } = globalThis.Bun;
1120
1120
  var resolveHmrClientPath = () => {
1121
1121
  const projectRoot = process.cwd();
1122
- const fromSource = resolve2(import.meta.dir, "client/hmrClient.ts");
1122
+ const fromSource = resolve3(import.meta.dir, "client/hmrClient.ts");
1123
1123
  if (existsSync7(fromSource) && fromSource.startsWith(projectRoot)) {
1124
1124
  return fromSource;
1125
1125
  }
1126
- const fromNodeModules = resolve2(projectRoot, "node_modules/@absolutejs/absolute/dist/dev/client/hmrClient.ts");
1126
+ const fromNodeModules = resolve3(projectRoot, "node_modules/@absolutejs/absolute/dist/dev/client/hmrClient.ts");
1127
1127
  if (existsSync7(fromNodeModules))
1128
1128
  return fromNodeModules;
1129
- return resolve2(import.meta.dir, "dev/client/hmrClient.ts");
1129
+ return resolve3(import.meta.dir, "dev/client/hmrClient.ts");
1130
1130
  }, hmrClientPath2, buildHMRClient = async () => {
1131
1131
  const entryPoint = hmrClientPath2;
1132
1132
  const result = await bunBuild({
@@ -1156,7 +1156,7 @@ var init_buildHMRClient = __esm(() => {
1156
1156
  // src/build/nativeRewrite.ts
1157
1157
  import { dlopen, FFIType, ptr } from "bun:ffi";
1158
1158
  import { platform as platform2, arch as arch2 } from "os";
1159
- import { resolve as resolve3 } from "path";
1159
+ import { resolve as resolve4 } from "path";
1160
1160
  var ffiDefinition, nativeLib = null, loadNative = () => {
1161
1161
  if (nativeLib !== null)
1162
1162
  return nativeLib;
@@ -1174,7 +1174,7 @@ var ffiDefinition, nativeLib = null, loadNative = () => {
1174
1174
  if (!libPath)
1175
1175
  return null;
1176
1176
  try {
1177
- const fullPath = resolve3(import.meta.dir, "../../native/packages", libPath);
1177
+ const fullPath = resolve4(import.meta.dir, "../../native/packages", libPath);
1178
1178
  const lib = dlopen(fullPath, ffiDefinition);
1179
1179
  nativeLib = lib.symbols;
1180
1180
  return nativeLib;
@@ -1317,11 +1317,11 @@ var devVendorPaths = null, getDevVendorPaths = () => devVendorPaths, setDevVendo
1317
1317
 
1318
1318
  // src/build/angularLinkerPlugin.ts
1319
1319
  import { existsSync as existsSync8, mkdirSync as mkdirSync4, readFileSync as readFileSync4, writeFileSync as writeFileSync3 } from "fs";
1320
- import { dirname as dirname2, join as join5, relative as relative2, resolve as resolve4 } from "path";
1320
+ import { dirname as dirname2, join as join5, relative as relative2, resolve as resolve5 } from "path";
1321
1321
  import { createHash } from "crypto";
1322
1322
  var CACHE_DIR, angularLinkerPlugin;
1323
1323
  var init_angularLinkerPlugin = __esm(() => {
1324
- CACHE_DIR = resolve4(".absolutejs", "cache", "angular-linker");
1324
+ CACHE_DIR = resolve5(".absolutejs", "cache", "angular-linker");
1325
1325
  angularLinkerPlugin = {
1326
1326
  name: "angular-linker",
1327
1327
  setup(bld) {
@@ -1361,7 +1361,7 @@ var init_angularLinkerPlugin = __esm(() => {
1361
1361
  exists: existsSync8,
1362
1362
  readFile: readFileSync4,
1363
1363
  relative: relative2,
1364
- resolve: resolve4
1364
+ resolve: resolve5
1365
1365
  },
1366
1366
  linkerJitMode: false,
1367
1367
  logger: {
@@ -1395,14 +1395,14 @@ var init_angularLinkerPlugin = __esm(() => {
1395
1395
 
1396
1396
  // src/utils/cleanStaleOutputs.ts
1397
1397
  import { rm as rm2 } from "fs/promises";
1398
- import { resolve as resolve5 } from "path";
1398
+ import { resolve as resolve6 } from "path";
1399
1399
  var {Glob: Glob4 } = globalThis.Bun;
1400
1400
  var HASHED_FILE_PATTERN, cleanStaleOutputs = async (buildPath, currentOutputPaths) => {
1401
- const currentPaths = new Set(currentOutputPaths.map((path) => resolve5(path)));
1401
+ const currentPaths = new Set(currentOutputPaths.map((path) => resolve6(path)));
1402
1402
  const glob = new Glob4("**/*");
1403
1403
  const removals = [];
1404
1404
  for (const relative3 of glob.scanSync({ cwd: buildPath })) {
1405
- const absolute = resolve5(buildPath, relative3);
1405
+ const absolute = resolve6(buildPath, relative3);
1406
1406
  if (currentPaths.has(absolute))
1407
1407
  continue;
1408
1408
  if (!HASHED_FILE_PATTERN.test(relative3))
@@ -1463,10 +1463,10 @@ var commonAncestor = (paths, fallback) => {
1463
1463
  var init_commonAncestor = () => {};
1464
1464
 
1465
1465
  // src/utils/validateSafePath.ts
1466
- import { resolve as resolve6, relative as relative3 } from "path";
1466
+ import { resolve as resolve7, relative as relative3 } from "path";
1467
1467
  var validateSafePath = (targetPath, baseDirectory) => {
1468
- const absoluteBase = resolve6(baseDirectory);
1469
- const absoluteTarget = resolve6(baseDirectory, targetPath);
1468
+ const absoluteBase = resolve7(baseDirectory);
1469
+ const absoluteTarget = resolve7(baseDirectory, targetPath);
1470
1470
  const relativePath = normalizePath(relative3(absoluteBase, absoluteTarget));
1471
1471
  if (relativePath.startsWith("../") || relativePath === "..") {
1472
1472
  throw new Error(`Unsafe path: ${targetPath}`);
@@ -1488,7 +1488,7 @@ import {
1488
1488
  join as join7,
1489
1489
  basename as basename2,
1490
1490
  extname as extname2,
1491
- resolve as resolve7,
1491
+ resolve as resolve8,
1492
1492
  relative as relative4,
1493
1493
  sep as sep2
1494
1494
  } from "path";
@@ -1496,14 +1496,14 @@ import { env } from "process";
1496
1496
  var {write, file, Transpiler } = globalThis.Bun;
1497
1497
  var resolveDevClientDir2 = () => {
1498
1498
  const projectRoot = process.cwd();
1499
- const fromSource = resolve7(import.meta.dir, "../dev/client");
1499
+ const fromSource = resolve8(import.meta.dir, "../dev/client");
1500
1500
  if (existsSync9(fromSource) && fromSource.startsWith(projectRoot)) {
1501
1501
  return fromSource;
1502
1502
  }
1503
- const fromNodeModules = resolve7(projectRoot, "node_modules/@absolutejs/absolute/dist/dev/client");
1503
+ const fromNodeModules = resolve8(projectRoot, "node_modules/@absolutejs/absolute/dist/dev/client");
1504
1504
  if (existsSync9(fromNodeModules))
1505
1505
  return fromNodeModules;
1506
- return resolve7(import.meta.dir, "./dev/client");
1506
+ return resolve8(import.meta.dir, "./dev/client");
1507
1507
  }, devClientDir2, hmrClientPath3, persistentCache, sourceHashCache, clearSvelteCompilerCache = () => {
1508
1508
  persistentCache.clear();
1509
1509
  sourceHashCache.clear();
@@ -1515,7 +1515,7 @@ var resolveDevClientDir2 = () => {
1515
1515
  return false;
1516
1516
  }
1517
1517
  }, resolveSvelte = async (spec, from) => {
1518
- const basePath = resolve7(dirname3(from), spec);
1518
+ const basePath = resolve8(dirname3(from), spec);
1519
1519
  const explicit = /\.(svelte|svelte\.(?:ts|js))$/.test(basePath);
1520
1520
  if (!explicit) {
1521
1521
  const extensions = [".svelte", ".svelte.ts", ".svelte.js"];
@@ -1725,18 +1725,18 @@ __export(exports_compileVue, {
1725
1725
  });
1726
1726
  import { existsSync as existsSync10 } from "fs";
1727
1727
  import { mkdir as mkdir2 } from "fs/promises";
1728
- import { basename as basename3, dirname as dirname4, join as join8, relative as relative5, resolve as resolve8 } from "path";
1728
+ import { basename as basename3, dirname as dirname4, join as join8, relative as relative5, resolve as resolve9 } from "path";
1729
1729
  var {file: file2, write: write2, Transpiler: Transpiler2 } = globalThis.Bun;
1730
1730
  var resolveDevClientDir3 = () => {
1731
1731
  const projectRoot = process.cwd();
1732
- const fromSource = resolve8(import.meta.dir, "../dev/client");
1732
+ const fromSource = resolve9(import.meta.dir, "../dev/client");
1733
1733
  if (existsSync10(fromSource) && fromSource.startsWith(projectRoot)) {
1734
1734
  return fromSource;
1735
1735
  }
1736
- const fromNodeModules = resolve8(projectRoot, "node_modules/@absolutejs/absolute/dist/dev/client");
1736
+ const fromNodeModules = resolve9(projectRoot, "node_modules/@absolutejs/absolute/dist/dev/client");
1737
1737
  if (existsSync10(fromNodeModules))
1738
1738
  return fromNodeModules;
1739
- return resolve8(import.meta.dir, "./dev/client");
1739
+ return resolve9(import.meta.dir, "./dev/client");
1740
1740
  }, devClientDir3, hmrClientPath4, transpiler2, scriptCache, scriptSetupCache, templateCache, styleCache, persistentBuildCache, vueSourceHashCache, vueHmrMetadata, clearVueHmrCaches = () => {
1741
1741
  scriptCache.clear();
1742
1742
  scriptSetupCache.clear();
@@ -1825,7 +1825,7 @@ var resolveDevClientDir3 = () => {
1825
1825
  const importPaths = extractImports(scriptSource);
1826
1826
  const childComponentPaths = importPaths.filter((path) => path.startsWith(".") && path.endsWith(".vue"));
1827
1827
  const helperModulePaths = importPaths.filter((path) => path.startsWith(".") && !path.endsWith(".vue"));
1828
- const childBuildResults = await Promise.all(childComponentPaths.map((relativeChildPath) => compileVueFile(resolve8(dirname4(sourceFilePath), relativeChildPath), outputDirs, cacheMap, false, vueRootDir, compiler)));
1828
+ const childBuildResults = await Promise.all(childComponentPaths.map((relativeChildPath) => compileVueFile(resolve9(dirname4(sourceFilePath), relativeChildPath), outputDirs, cacheMap, false, vueRootDir, compiler)));
1829
1829
  const hasScript = descriptor.script || descriptor.scriptSetup;
1830
1830
  const compiledScript = hasScript ? compiler.compileScript(descriptor, {
1831
1831
  id: componentId,
@@ -1910,7 +1910,7 @@ if (typeof __VUE_HMR_RUNTIME__ !== 'undefined') {
1910
1910
  hmrId,
1911
1911
  serverPath: serverOutputPath,
1912
1912
  tsHelperPaths: [
1913
- ...helperModulePaths.map((helper) => resolve8(dirname4(sourceFilePath), helper.endsWith(".ts") ? helper : `${helper}.ts`)),
1913
+ ...helperModulePaths.map((helper) => resolve9(dirname4(sourceFilePath), helper.endsWith(".ts") ? helper : `${helper}.ts`)),
1914
1914
  ...childBuildResults.flatMap((child) => child.tsHelperPaths)
1915
1915
  ]
1916
1916
  };
@@ -1933,7 +1933,7 @@ if (typeof __VUE_HMR_RUNTIME__ !== 'undefined') {
1933
1933
  const buildCache = new Map;
1934
1934
  const allTsHelperPaths = new Set;
1935
1935
  const compiledPages = await Promise.all(entryPoints.map(async (entryPath) => {
1936
- const result = await compileVueFile(resolve8(entryPath), {
1936
+ const result = await compileVueFile(resolve9(entryPath), {
1937
1937
  client: clientOutputDir,
1938
1938
  css: cssOutputDir,
1939
1939
  server: serverOutputDir
@@ -100359,14 +100359,14 @@ ${lanes.join(`
100359
100359
  }
100360
100360
  }
100361
100361
  function createImportCallExpressionAMD(arg, containsLexicalThis) {
100362
- const resolve9 = factory2.createUniqueName("resolve");
100362
+ const resolve10 = factory2.createUniqueName("resolve");
100363
100363
  const reject = factory2.createUniqueName("reject");
100364
100364
  const parameters = [
100365
- factory2.createParameterDeclaration(undefined, undefined, resolve9),
100365
+ factory2.createParameterDeclaration(undefined, undefined, resolve10),
100366
100366
  factory2.createParameterDeclaration(undefined, undefined, reject)
100367
100367
  ];
100368
100368
  const body = factory2.createBlock([
100369
- factory2.createExpressionStatement(factory2.createCallExpression(factory2.createIdentifier("require"), undefined, [factory2.createArrayLiteralExpression([arg || factory2.createOmittedExpression()]), resolve9, reject]))
100369
+ factory2.createExpressionStatement(factory2.createCallExpression(factory2.createIdentifier("require"), undefined, [factory2.createArrayLiteralExpression([arg || factory2.createOmittedExpression()]), resolve10, reject]))
100370
100370
  ]);
100371
100371
  let func;
100372
100372
  if (languageVersion >= 2) {
@@ -170541,8 +170541,8 @@ Additional information: BADCLIENT: Bad error code, ${badCode} not found in range
170541
170541
  installPackage(options) {
170542
170542
  this.packageInstallId++;
170543
170543
  const request = { kind: "installPackage", ...options, id: this.packageInstallId };
170544
- const promise = new Promise((resolve9, reject) => {
170545
- (this.packageInstalledPromise ?? (this.packageInstalledPromise = /* @__PURE__ */ new Map)).set(this.packageInstallId, { resolve: resolve9, reject });
170544
+ const promise = new Promise((resolve10, reject) => {
170545
+ (this.packageInstalledPromise ?? (this.packageInstalledPromise = /* @__PURE__ */ new Map)).set(this.packageInstallId, { resolve: resolve10, reject });
170546
170546
  });
170547
170547
  this.installer.send(request);
170548
170548
  return promise;
@@ -170809,7 +170809,7 @@ __export(exports_compileAngular, {
170809
170809
  compileAngular: () => compileAngular
170810
170810
  });
170811
170811
  import { existsSync as existsSync11, readFileSync as readFileSync5, promises as fs } from "fs";
170812
- import { join as join9, basename as basename4, sep as sep3, dirname as dirname5, resolve as resolve9, relative as relative6 } from "path";
170812
+ import { join as join9, basename as basename4, sep as sep3, dirname as dirname5, resolve as resolve10, relative as relative6 } from "path";
170813
170813
  import { createHash as createHash2 } from "crypto";
170814
170814
  var import_typescript, computeConfigHash = () => {
170815
170815
  try {
@@ -170820,14 +170820,14 @@ var import_typescript, computeConfigHash = () => {
170820
170820
  }
170821
170821
  }, resolveDevClientDir4 = () => {
170822
170822
  const projectRoot = process.cwd();
170823
- const fromSource = resolve9(import.meta.dir, "../dev/client");
170823
+ const fromSource = resolve10(import.meta.dir, "../dev/client");
170824
170824
  if (existsSync11(fromSource) && fromSource.startsWith(projectRoot)) {
170825
170825
  return fromSource;
170826
170826
  }
170827
- const fromNodeModules = resolve9(projectRoot, "node_modules/@absolutejs/absolute/dist/dev/client");
170827
+ const fromNodeModules = resolve10(projectRoot, "node_modules/@absolutejs/absolute/dist/dev/client");
170828
170828
  if (existsSync11(fromNodeModules))
170829
170829
  return fromNodeModules;
170830
- return resolve9(import.meta.dir, "./dev/client");
170830
+ return resolve10(import.meta.dir, "./dev/client");
170831
170831
  }, devClientDir4, hmrClientPath5, hmrRuntimePath, injectHMRRegistration = (content, sourceId) => {
170832
170832
  const componentClassRegex = /(?:export\s+)?class\s+(\w+Component)\s/g;
170833
170833
  const componentNames = [];
@@ -170889,7 +170889,7 @@ ${registrations}
170889
170889
  } else {
170890
170890
  const tsPath = __require.resolve("/home/alexkahn/abs/absolutejs/node_modules/typescript/lib/typescript.js");
170891
170891
  const tsRootDir = dirname5(tsPath);
170892
- tsLibDir = tsRootDir.endsWith("lib") ? tsRootDir : resolve9(tsRootDir, "lib");
170892
+ tsLibDir = tsRootDir.endsWith("lib") ? tsRootDir : resolve10(tsRootDir, "lib");
170893
170893
  const config = readConfiguration("./tsconfig.json");
170894
170894
  options = {
170895
170895
  emitDecoratorMetadata: true,
@@ -170935,7 +170935,7 @@ ${registrations}
170935
170935
  };
170936
170936
  }
170937
170937
  const emitted = {};
170938
- const resolvedOutDir = resolve9(outDir);
170938
+ const resolvedOutDir = resolve10(outDir);
170939
170939
  host.writeFile = (fileName, text) => {
170940
170940
  const relativePath = resolveRelativePath(fileName, resolvedOutDir, outDir);
170941
170941
  emitted[relativePath] = text;
@@ -171011,7 +171011,7 @@ ${registrations}
171011
171011
  }, compileAngularFileJIT = async (inputPath, outDir, rootDir) => {
171012
171012
  const allOutputs = [];
171013
171013
  const visited = new Set;
171014
- const baseDir = resolve9(rootDir ?? process.cwd());
171014
+ const baseDir = resolve10(rootDir ?? process.cwd());
171015
171015
  const angularTranspiler = new Bun.Transpiler({
171016
171016
  loader: "ts",
171017
171017
  tsconfig: JSON.stringify({
@@ -171022,7 +171022,7 @@ ${registrations}
171022
171022
  })
171023
171023
  });
171024
171024
  const transpileFile = async (filePath) => {
171025
- const resolved = resolve9(filePath);
171025
+ const resolved = resolve10(filePath);
171026
171026
  if (visited.has(resolved))
171027
171027
  return;
171028
171028
  visited.add(resolved);
@@ -171074,7 +171074,7 @@ ${registrations}
171074
171074
  }
171075
171075
  const inputDirForResolve = dirname5(actualPath);
171076
171076
  await Promise.all(localImports.map((imp) => {
171077
- const importPath = resolve9(inputDirForResolve, imp);
171077
+ const importPath = resolve10(inputDirForResolve, imp);
171078
171078
  return transpileFile(importPath);
171079
171079
  }));
171080
171080
  };
@@ -171511,7 +171511,7 @@ import {
171511
171511
  statSync,
171512
171512
  writeFileSync as writeFileSync4
171513
171513
  } from "fs";
171514
- import { basename as basename5, join as join14, relative as relative7, resolve as resolve10 } from "path";
171514
+ import { basename as basename5, join as join14, relative as relative7, resolve as resolve11 } from "path";
171515
171515
  import { cwd, env as env2, exit } from "process";
171516
171516
  var {build: bunBuild6, Glob: Glob5 } = globalThis.Bun;
171517
171517
  var isDev, extractBuildError = (logs, pass, label, frameworkNames, isIncremental, throwOnError) => {
@@ -171549,8 +171549,8 @@ var isDev, extractBuildError = (logs, pass, label, frameworkNames, isIncremental
171549
171549
  }
171550
171550
  }, resolveAbsoluteVersion = async () => {
171551
171551
  const candidates = [
171552
- resolve10(import.meta.dir, "..", "..", "package.json"),
171553
- resolve10(import.meta.dir, "..", "package.json")
171552
+ resolve11(import.meta.dir, "..", "..", "package.json"),
171553
+ resolve11(import.meta.dir, "..", "package.json")
171554
171554
  ];
171555
171555
  for (const candidate of candidates) {
171556
171556
  const pkg = await tryReadPackageJson(candidate);
@@ -171562,7 +171562,7 @@ var isDev, extractBuildError = (logs, pass, label, frameworkNames, isIncremental
171562
171562
  return;
171563
171563
  }
171564
171564
  }, SKIP_DIRS, addWorkerPathIfExists = (file3, relPath, workerPaths) => {
171565
- const absPath = resolve10(file3, "..", relPath);
171565
+ const absPath = resolve11(file3, "..", relPath);
171566
171566
  try {
171567
171567
  statSync(absPath);
171568
171568
  workerPaths.add(absPath);
@@ -171623,7 +171623,7 @@ var isDev, extractBuildError = (logs, pass, label, frameworkNames, isIncremental
171623
171623
  }
171624
171624
  }, copyReactDevIndexes = (reactIndexesPath, reactPagesPath, devIndexDir, readDir) => {
171625
171625
  const indexFiles = readDir(reactIndexesPath).filter((file3) => file3.endsWith(".tsx"));
171626
- const pagesRel = relative7(process.cwd(), resolve10(reactPagesPath)).replace(/\\/g, "/");
171626
+ const pagesRel = relative7(process.cwd(), resolve11(reactPagesPath)).replace(/\\/g, "/");
171627
171627
  for (const file3 of indexFiles) {
171628
171628
  let content = readFileSync6(join14(reactIndexesPath, file3), "utf-8");
171629
171629
  content = content.replace(/from\s*['"]([^'"]*\/pages\/([^'"]+))['"]/g, (_match, _fullPath, componentName) => `from '/@src/${pagesRel}/${componentName}'`);
@@ -171631,27 +171631,27 @@ var isDev, extractBuildError = (logs, pass, label, frameworkNames, isIncremental
171631
171631
  }
171632
171632
  }, copySvelteDevIndexes = (svelteDir, sveltePagesPath, svelteEntries, devIndexDir) => {
171633
171633
  const svelteIndexDir = join14(svelteDir, "generated", "indexes");
171634
- const sveltePageEntries = svelteEntries.filter((file3) => resolve10(file3).startsWith(resolve10(sveltePagesPath)));
171634
+ const sveltePageEntries = svelteEntries.filter((file3) => resolve11(file3).startsWith(resolve11(sveltePagesPath)));
171635
171635
  for (const entry of sveltePageEntries) {
171636
171636
  const name = basename5(entry).replace(/\.svelte(\.(ts|js))?$/, "");
171637
171637
  const indexFile = join14(svelteIndexDir, "pages", `${name}.js`);
171638
171638
  if (!existsSync12(indexFile))
171639
171639
  continue;
171640
171640
  let content = readFileSync6(indexFile, "utf-8");
171641
- const srcRel = relative7(process.cwd(), resolve10(entry)).replace(/\\/g, "/");
171641
+ const srcRel = relative7(process.cwd(), resolve11(entry)).replace(/\\/g, "/");
171642
171642
  content = content.replace(/import\s+Component\s+from\s+['"]([^'"]+)['"]/, `import Component from "/@src/${srcRel}"`);
171643
171643
  writeFileSync4(join14(devIndexDir, `${name}.svelte.js`), content);
171644
171644
  }
171645
171645
  }, copyVueDevIndexes = (vueDir, vuePagesPath, vueEntries, devIndexDir) => {
171646
171646
  const vueIndexDir = join14(vueDir, "generated", "indexes");
171647
- const vuePageEntries = vueEntries.filter((file3) => resolve10(file3).startsWith(resolve10(vuePagesPath)));
171647
+ const vuePageEntries = vueEntries.filter((file3) => resolve11(file3).startsWith(resolve11(vuePagesPath)));
171648
171648
  for (const entry of vuePageEntries) {
171649
171649
  const name = basename5(entry, ".vue");
171650
171650
  const indexFile = join14(vueIndexDir, `${name}.js`);
171651
171651
  if (!existsSync12(indexFile))
171652
171652
  continue;
171653
171653
  let content = readFileSync6(indexFile, "utf-8");
171654
- const srcRel = relative7(process.cwd(), resolve10(entry)).replace(/\\/g, "/");
171654
+ const srcRel = relative7(process.cwd(), resolve11(entry)).replace(/\\/g, "/");
171655
171655
  content = content.replace(/import\s+Comp\s+from\s+['"]([^'"]+)['"]/, `import Comp from "/@src/${srcRel}"`);
171656
171656
  writeFileSync4(join14(devIndexDir, `${name}.vue.js`), content);
171657
171657
  }
@@ -171664,7 +171664,7 @@ var isDev, extractBuildError = (logs, pass, label, frameworkNames, isIncremental
171664
171664
  const last = allComments[allComments.length - 1];
171665
171665
  if (!last?.[1])
171666
171666
  return JSON.stringify(outputPath);
171667
- const srcPath = resolve10(projectRoot, last[1].replace("/client/", "/").replace(/\.js$/, ".ts"));
171667
+ const srcPath = resolve11(projectRoot, last[1].replace("/client/", "/").replace(/\.js$/, ".ts"));
171668
171668
  return JSON.stringify(srcPath);
171669
171669
  }, QUOTE_CHARS, OPEN_BRACES, CLOSE_BRACES, findFunctionExpressionEnd = (content, startPos) => {
171670
171670
  let depth = 0;
@@ -171869,13 +171869,13 @@ ${content.slice(firstUseIdx)}`;
171869
171869
  const filterToIncrementalEntries = (entryPoints, mapToSource) => {
171870
171870
  if (!isIncremental || !incrementalFiles)
171871
171871
  return entryPoints;
171872
- const normalizedIncremental = new Set(incrementalFiles.map((f) => resolve10(f)));
171872
+ const normalizedIncremental = new Set(incrementalFiles.map((f) => resolve11(f)));
171873
171873
  const matchingEntries = [];
171874
171874
  for (const entry of entryPoints) {
171875
171875
  const sourceFile = mapToSource(entry);
171876
171876
  if (!sourceFile)
171877
171877
  continue;
171878
- if (!normalizedIncremental.has(resolve10(sourceFile)))
171878
+ if (!normalizedIncremental.has(resolve11(sourceFile)))
171879
171879
  continue;
171880
171880
  matchingEntries.push(entry);
171881
171881
  }
@@ -171922,7 +171922,7 @@ ${content.slice(firstUseIdx)}`;
171922
171922
  ]);
171923
171923
  const shouldIncludeHtmlAssets = !isIncremental || normalizedIncrementalFiles?.some((f) => f.includes("/html/") && (f.endsWith(".html") || f.endsWith(".css")));
171924
171924
  const reactEntries = isIncremental && reactIndexesPath && reactPagesPath ? filterToIncrementalEntries(allReactEntries, (entry) => {
171925
- if (entry.startsWith(resolve10(reactIndexesPath))) {
171925
+ if (entry.startsWith(resolve11(reactIndexesPath))) {
171926
171926
  const pageName = basename5(entry, ".tsx");
171927
171927
  return join14(reactPagesPath, `${pageName}.tsx`);
171928
171928
  }
@@ -172386,7 +172386,7 @@ var init_build = __esm(() => {
172386
172386
  // src/dev/dependencyGraph.ts
172387
172387
  import { existsSync as existsSync13, readFileSync as readFileSync7 } from "fs";
172388
172388
  var {Glob: Glob6 } = globalThis.Bun;
172389
- import { resolve as resolve11 } from "path";
172389
+ import { resolve as resolve12 } from "path";
172390
172390
  var emptyDependencyGraph, tsTranspiler, jsTranspiler, loaderForFile = (filePath) => {
172391
172391
  const lower = filePath.toLowerCase();
172392
172392
  if (lower.endsWith(".ts") || lower.endsWith(".tsx") || lower.endsWith(".jsx"))
@@ -172400,8 +172400,8 @@ var emptyDependencyGraph, tsTranspiler, jsTranspiler, loaderForFile = (filePath)
172400
172400
  if (!importPath.startsWith(".") && !importPath.startsWith("/")) {
172401
172401
  return null;
172402
172402
  }
172403
- const fromDir = resolve11(fromFile, "..");
172404
- const normalized = resolve11(fromDir, importPath);
172403
+ const fromDir = resolve12(fromFile, "..");
172404
+ const normalized = resolve12(fromDir, importPath);
172405
172405
  const extensions = [
172406
172406
  ".ts",
172407
172407
  ".tsx",
@@ -172431,7 +172431,7 @@ var emptyDependencyGraph, tsTranspiler, jsTranspiler, loaderForFile = (filePath)
172431
172431
  dependents.delete(normalizedPath);
172432
172432
  }
172433
172433
  }, addFileToGraph = (graph, filePath) => {
172434
- const normalizedPath = resolve11(filePath);
172434
+ const normalizedPath = resolve12(filePath);
172435
172435
  if (!existsSync13(normalizedPath))
172436
172436
  return;
172437
172437
  const dependencies = extractDependencies(normalizedPath);
@@ -172448,10 +172448,10 @@ var emptyDependencyGraph, tsTranspiler, jsTranspiler, loaderForFile = (filePath)
172448
172448
  }, IGNORED_SEGMENTS, buildInitialDependencyGraph = (graph, directories) => {
172449
172449
  const processedFiles = new Set;
172450
172450
  const glob = new Glob6("**/*.{ts,tsx,js,jsx,vue,svelte,html,htm}");
172451
- const resolvedDirs = directories.map((dir) => resolve11(dir)).filter((dir) => existsSync13(dir));
172451
+ const resolvedDirs = directories.map((dir) => resolve12(dir)).filter((dir) => existsSync13(dir));
172452
172452
  const allFiles = resolvedDirs.flatMap((dir) => Array.from(glob.scanSync({ absolute: true, cwd: dir })));
172453
172453
  for (const file3 of allFiles) {
172454
- const fullPath = resolve11(file3);
172454
+ const fullPath = resolve12(file3);
172455
172455
  if (IGNORED_SEGMENTS.some((seg) => fullPath.includes(seg)))
172456
172456
  continue;
172457
172457
  if (processedFiles.has(fullPath))
@@ -172564,7 +172564,7 @@ var emptyDependencyGraph, tsTranspiler, jsTranspiler, loaderForFile = (filePath)
172564
172564
  return [];
172565
172565
  }
172566
172566
  }, getAffectedFiles = (graph, changedFile) => {
172567
- const normalizedPath = resolve11(changedFile);
172567
+ const normalizedPath = resolve12(changedFile);
172568
172568
  const affected = new Set;
172569
172569
  const toProcess = [normalizedPath];
172570
172570
  const processNode = (current) => {
@@ -172604,7 +172604,7 @@ var emptyDependencyGraph, tsTranspiler, jsTranspiler, loaderForFile = (filePath)
172604
172604
  }
172605
172605
  graph.dependents.delete(normalizedPath);
172606
172606
  }, removeFileFromGraph = (graph, filePath) => {
172607
- const normalizedPath = resolve11(filePath);
172607
+ const normalizedPath = resolve12(filePath);
172608
172608
  removeDepsForFile(graph, normalizedPath);
172609
172609
  removeDependentsForFile(graph, normalizedPath);
172610
172610
  };
@@ -172647,12 +172647,12 @@ var globalVersionCounter = 0, createModuleVersionTracker = () => new Map, getNex
172647
172647
  };
172648
172648
 
172649
172649
  // src/dev/configResolver.ts
172650
- import { resolve as resolve12 } from "path";
172650
+ import { resolve as resolve13 } from "path";
172651
172651
  var resolveBuildPaths = (config) => {
172652
172652
  const cwd2 = process.cwd();
172653
172653
  const normalize = (path) => path.replace(/\\/g, "/");
172654
- const withDefault = (value, fallback) => normalize(resolve12(cwd2, value ?? fallback));
172655
- const optional = (value) => value ? normalize(resolve12(cwd2, value)) : undefined;
172654
+ const withDefault = (value, fallback) => normalize(resolve13(cwd2, value ?? fallback));
172655
+ const optional = (value) => value ? normalize(resolve13(cwd2, value)) : undefined;
172656
172656
  return {
172657
172657
  angularDir: optional(config.angularDirectory),
172658
172658
  assetsDir: optional(config.assetsDirectory),
@@ -172840,7 +172840,7 @@ var init_pathUtils = __esm(() => {
172840
172840
  // src/dev/fileWatcher.ts
172841
172841
  import { watch } from "fs";
172842
172842
  import { existsSync as existsSync14 } from "fs";
172843
- import { join as join15, resolve as resolve13 } from "path";
172843
+ import { join as join15, resolve as resolve14 } from "path";
172844
172844
  var safeRemoveFromGraph = (graph, fullPath) => {
172845
172845
  try {
172846
172846
  removeFileFromGraph(graph, fullPath);
@@ -172885,7 +172885,7 @@ var safeRemoveFromGraph = (graph, fullPath) => {
172885
172885
  }, addFileWatchers = (state, paths, onFileChange) => {
172886
172886
  const stylesDir = state.resolvedPaths?.stylesDir;
172887
172887
  paths.forEach((path) => {
172888
- const absolutePath = resolve13(path).replace(/\\/g, "/");
172888
+ const absolutePath = resolve14(path).replace(/\\/g, "/");
172889
172889
  if (!existsSync14(absolutePath)) {
172890
172890
  return;
172891
172891
  }
@@ -172896,7 +172896,7 @@ var safeRemoveFromGraph = (graph, fullPath) => {
172896
172896
  const watchPaths = getWatchPaths(config, state.resolvedPaths);
172897
172897
  const stylesDir = state.resolvedPaths?.stylesDir;
172898
172898
  watchPaths.forEach((path) => {
172899
- const absolutePath = resolve13(path).replace(/\\/g, "/");
172899
+ const absolutePath = resolve14(path).replace(/\\/g, "/");
172900
172900
  if (!existsSync14(absolutePath)) {
172901
172901
  return;
172902
172902
  }
@@ -172911,13 +172911,13 @@ var init_fileWatcher = __esm(() => {
172911
172911
  });
172912
172912
 
172913
172913
  // src/dev/assetStore.ts
172914
- import { resolve as resolve14 } from "path";
172914
+ import { resolve as resolve15 } from "path";
172915
172915
  import { readdir as readdir2, unlink } from "fs/promises";
172916
172916
  var mimeTypes, getMimeType = (filePath) => {
172917
172917
  const ext = filePath.slice(filePath.lastIndexOf("."));
172918
172918
  return mimeTypes[ext] ?? "application/octet-stream";
172919
172919
  }, HASHED_FILE_RE, stripHash = (webPath) => webPath.replace(/\.[a-z0-9]{8}(\.(js|css|mjs))$/, "$1"), processWalkEntry = (entry, dir, liveByIdentity, walkAndClean) => {
172920
- const fullPath = resolve14(dir, entry.name);
172920
+ const fullPath = resolve15(dir, entry.name);
172921
172921
  if (entry.isDirectory()) {
172922
172922
  return walkAndClean(fullPath);
172923
172923
  }
@@ -172933,10 +172933,10 @@ var mimeTypes, getMimeType = (filePath) => {
172933
172933
  }, cleanStaleAssets = async (store, manifest, buildDir) => {
172934
172934
  const liveByIdentity = new Map;
172935
172935
  for (const webPath of store.keys()) {
172936
- const diskPath = resolve14(buildDir, webPath.slice(1));
172936
+ const diskPath = resolve15(buildDir, webPath.slice(1));
172937
172937
  liveByIdentity.set(stripHash(diskPath), diskPath);
172938
172938
  }
172939
- const absBuildDir = resolve14(buildDir);
172939
+ const absBuildDir = resolve15(buildDir);
172940
172940
  Object.values(manifest).forEach((val) => {
172941
172941
  if (!HASHED_FILE_RE.test(val))
172942
172942
  return;
@@ -172954,7 +172954,7 @@ var mimeTypes, getMimeType = (filePath) => {
172954
172954
  } catch {}
172955
172955
  }, lookupAsset = (store, path) => store.get(path), processScanEntry = (entry, dir, prefix, store, scanDir) => {
172956
172956
  if (entry.isDirectory()) {
172957
- return scanDir(resolve14(dir, entry.name), `${prefix}${entry.name}/`);
172957
+ return scanDir(resolve15(dir, entry.name), `${prefix}${entry.name}/`);
172958
172958
  }
172959
172959
  if (!entry.name.startsWith("chunk-")) {
172960
172960
  return null;
@@ -172963,7 +172963,7 @@ var mimeTypes, getMimeType = (filePath) => {
172963
172963
  if (store.has(webPath)) {
172964
172964
  return null;
172965
172965
  }
172966
- return Bun.file(resolve14(dir, entry.name)).bytes().then((bytes) => {
172966
+ return Bun.file(resolve15(dir, entry.name)).bytes().then((bytes) => {
172967
172967
  store.set(webPath, bytes);
172968
172968
  return;
172969
172969
  }).catch(() => {});
@@ -172988,7 +172988,7 @@ var mimeTypes, getMimeType = (filePath) => {
172988
172988
  for (const webPath of newIdentities.values()) {
172989
172989
  if (store.has(webPath))
172990
172990
  continue;
172991
- loadPromises.push(Bun.file(resolve14(buildDir, webPath.slice(1))).bytes().then((bytes) => {
172991
+ loadPromises.push(Bun.file(resolve15(buildDir, webPath.slice(1))).bytes().then((bytes) => {
172992
172992
  store.set(webPath, bytes);
172993
172993
  return;
172994
172994
  }).catch(() => {}));
@@ -173039,9 +173039,9 @@ var init_fileHashTracker = __esm(() => {
173039
173039
  });
173040
173040
 
173041
173041
  // src/dev/reactComponentClassifier.ts
173042
- import { resolve as resolve15 } from "path";
173042
+ import { resolve as resolve16 } from "path";
173043
173043
  var classifyComponent = (filePath) => {
173044
- const normalizedPath = resolve15(filePath);
173044
+ const normalizedPath = resolve16(filePath);
173045
173045
  if (normalizedPath.includes("/react/pages/")) {
173046
173046
  return "server";
173047
173047
  }
@@ -173053,7 +173053,7 @@ var classifyComponent = (filePath) => {
173053
173053
  var init_reactComponentClassifier = () => {};
173054
173054
 
173055
173055
  // src/dev/moduleMapper.ts
173056
- import { basename as basename6, resolve as resolve16 } from "path";
173056
+ import { basename as basename6, resolve as resolve17 } from "path";
173057
173057
  var buildModulePaths = (moduleKeys, manifest) => {
173058
173058
  const modulePaths = {};
173059
173059
  moduleKeys.forEach((key) => {
@@ -173063,7 +173063,7 @@ var buildModulePaths = (moduleKeys, manifest) => {
173063
173063
  });
173064
173064
  return modulePaths;
173065
173065
  }, processChangedFile = (sourceFile, framework, manifest, resolvedPaths, processedFiles) => {
173066
- const normalizedFile = resolve16(sourceFile);
173066
+ const normalizedFile = resolve17(sourceFile);
173067
173067
  const normalizedPath = normalizedFile.replace(/\\/g, "/");
173068
173068
  if (processedFiles.has(normalizedFile)) {
173069
173069
  return null;
@@ -173099,7 +173099,7 @@ var buildModulePaths = (moduleKeys, manifest) => {
173099
173099
  });
173100
173100
  return grouped;
173101
173101
  }, mapSourceFileToManifestKeys = (sourceFile, framework, resolvedPaths) => {
173102
- const normalizedFile = resolve16(sourceFile);
173102
+ const normalizedFile = resolve17(sourceFile);
173103
173103
  const fileName = basename6(normalizedFile);
173104
173104
  const baseName = fileName.replace(/\.(tsx?|jsx?|vue|svelte|css|html)$/, "");
173105
173105
  const pascalName = toPascal(baseName);
@@ -203236,7 +203236,7 @@ __export(exports_moduleServer, {
203236
203236
  SRC_URL_PREFIX: () => SRC_URL_PREFIX
203237
203237
  });
203238
203238
  import { existsSync as existsSync15, readFileSync as readFileSync10, statSync as statSync2 } from "fs";
203239
- import { basename as basename7, dirname as dirname7, extname as extname3, resolve as resolve17, relative as relative8 } from "path";
203239
+ import { basename as basename7, dirname as dirname7, extname as extname3, resolve as resolve18, relative as relative8 } from "path";
203240
203240
  var SRC_PREFIX = "/@src/", jsTranspiler2, tsTranspiler2, tsxTranspiler, TRANSPILABLE, ALL_EXPORTS_RE, STRING_CONTENTS_RE, preserveTypeExports = (originalSource, transpiled, valueExports) => {
203241
203241
  const codeOnly = originalSource.replace(STRING_CONTENTS_RE, '""');
203242
203242
  const allExports = [];
@@ -203256,7 +203256,7 @@ var SRC_PREFIX = "/@src/", jsTranspiler2, tsTranspiler2, tsxTranspiler, TRANSPIL
203256
203256
  ${stubs}
203257
203257
  `;
203258
203258
  }, resolveRelativeExtension = (srcPath, projectRoot, extensions) => {
203259
- const found = extensions.find((ext) => existsSync15(resolve17(projectRoot, srcPath + ext)));
203259
+ const found = extensions.find((ext) => existsSync15(resolve18(projectRoot, srcPath + ext)));
203260
203260
  return found ? srcPath + found : srcPath;
203261
203261
  }, IMPORT_EXTENSIONS, SIDE_EFFECT_EXTENSIONS, MODULE_EXTENSIONS, REACT_EXTENSIONS, escapeRegex3 = (str) => str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), buildImportRewriter = (vendorPaths) => {
203262
203262
  const entries = Object.entries(vendorPaths).sort(([a], [b]) => b.length - a.length);
@@ -203271,7 +203271,7 @@ ${stubs}
203271
203271
  return invalidationVersion > 0 ? `${mtime}.${invalidationVersion}` : `${mtime}`;
203272
203272
  }, srcUrl = (relPath, projectRoot) => {
203273
203273
  const base = `${SRC_PREFIX}${relPath.replace(/\\/g, "/")}`;
203274
- const absPath = resolve17(projectRoot, relPath);
203274
+ const absPath = resolve18(projectRoot, relPath);
203275
203275
  const cached = mtimeCache.get(absPath);
203276
203276
  if (cached !== undefined)
203277
203277
  return `${base}?v=${buildVersion(cached, absPath)}`;
@@ -203283,11 +203283,11 @@ ${stubs}
203283
203283
  return base;
203284
203284
  }
203285
203285
  }, resolveRelativeImport = (relPath, fileDir, projectRoot, extensions) => {
203286
- const absPath = resolve17(fileDir, relPath);
203286
+ const absPath = resolve18(fileDir, relPath);
203287
203287
  const rel = relative8(projectRoot, absPath);
203288
203288
  let srcPath = extname3(rel) ? rel : resolveRelativeExtension(rel, projectRoot, extensions);
203289
203289
  if (extname3(srcPath) === ".svelte") {
203290
- srcPath = relative8(projectRoot, resolveSvelteModulePath(resolve17(projectRoot, srcPath)));
203290
+ srcPath = relative8(projectRoot, resolveSvelteModulePath(resolve18(projectRoot, srcPath)));
203291
203291
  }
203292
203292
  return srcUrl(srcPath, projectRoot);
203293
203293
  }, rewriteImports2 = (code, filePath, projectRoot, rewriter) => {
@@ -203324,12 +203324,12 @@ ${stubs}
203324
203324
  return _match;
203325
203325
  });
203326
203326
  result = result.replace(/new\s+URL\(\s*["'](\.\.?\/[^"']+)["']\s*,\s*import\.meta\.url\s*\)/g, (_match, relPath) => {
203327
- const absPath = resolve17(fileDir, relPath);
203327
+ const absPath = resolve18(fileDir, relPath);
203328
203328
  const rel = relative8(projectRoot, absPath);
203329
203329
  return `new URL('${srcUrl(rel, projectRoot)}', import.meta.url)`;
203330
203330
  });
203331
203331
  result = result.replace(/import\.meta\.resolve\(\s*["'](\.\.?\/[^"']+)["']\s*\)/g, (_match, relPath) => {
203332
- const absPath = resolve17(fileDir, relPath);
203332
+ const absPath = resolve18(fileDir, relPath);
203333
203333
  const rel = relative8(projectRoot, absPath);
203334
203334
  return `'${srcUrl(rel, projectRoot)}'`;
203335
203335
  });
@@ -203597,7 +203597,7 @@ ${code}`;
203597
203597
  code = injectVueHmr(code, filePath, projectRoot, vueDir);
203598
203598
  return rewriteImports2(code, filePath, projectRoot, rewriter);
203599
203599
  }, injectVueHmr = (code, filePath, projectRoot, vueDir) => {
203600
- const hmrBase = vueDir ? resolve17(vueDir) : projectRoot;
203600
+ const hmrBase = vueDir ? resolve18(vueDir) : projectRoot;
203601
203601
  const hmrId = relative8(hmrBase, filePath).replace(/\\/g, "/").replace(/\.vue$/, "");
203602
203602
  let result = code.replace(/export\s+default\s+/, "var __hmr_comp__ = ");
203603
203603
  result += [
@@ -203755,7 +203755,7 @@ export default {};
203755
203755
  const escaped = virtualCss.replace(/\\/g, "\\\\").replace(/`/g, "\\`").replace(/\$/g, "\\$");
203756
203756
  return jsResponse(`var s=document.createElement('style');s.textContent=\`${escaped}\`;s.dataset.svelteHmr=${JSON.stringify(cssCheckPath)};var p=document.querySelector('style[data-svelte-hmr="${cssCheckPath}"]');if(p)p.remove();document.head.appendChild(s);`);
203757
203757
  }, resolveSourcePath = (relPath, projectRoot) => {
203758
- const filePath = resolve17(projectRoot, relPath);
203758
+ const filePath = resolve18(projectRoot, relPath);
203759
203759
  const ext = extname3(filePath);
203760
203760
  if (ext === ".svelte")
203761
203761
  return { ext, filePath: resolveSvelteModulePath(filePath) };
@@ -203782,7 +203782,7 @@ export default {};
203782
203782
  if (!TRANSPILABLE.has(ext))
203783
203783
  return;
203784
203784
  const stat2 = statSync2(filePath);
203785
- const resolvedVueDir = vueDir ? resolve17(vueDir) : undefined;
203785
+ const resolvedVueDir = vueDir ? resolve18(vueDir) : undefined;
203786
203786
  const content = REACT_EXTENSIONS.has(ext) ? transformReactFile(filePath, projectRoot, rewriter) : transformPlainFile(filePath, projectRoot, rewriter, resolvedVueDir);
203787
203787
  setTransformed(filePath, content, stat2.mtimeMs, extractImportedFiles(content, projectRoot));
203788
203788
  return jsResponse(content);
@@ -203813,7 +203813,7 @@ export default {};
203813
203813
  if (!pathname.startsWith(SRC_PREFIX))
203814
203814
  return;
203815
203815
  const relPath = pathname.slice(SRC_PREFIX.length);
203816
- const virtualCssResponse = handleVirtualSvelteCss(resolve17(projectRoot, relPath));
203816
+ const virtualCssResponse = handleVirtualSvelteCss(resolve18(projectRoot, relPath));
203817
203817
  if (virtualCssResponse)
203818
203818
  return virtualCssResponse;
203819
203819
  const { filePath, ext } = resolveSourcePath(relPath, projectRoot);
@@ -203829,11 +203829,11 @@ export default {};
203829
203829
  SRC_IMPORT_RE.lastIndex = 0;
203830
203830
  while ((match = SRC_IMPORT_RE.exec(content)) !== null) {
203831
203831
  if (match[1])
203832
- files.push(resolve17(projectRoot, match[1]));
203832
+ files.push(resolve18(projectRoot, match[1]));
203833
203833
  }
203834
203834
  return files;
203835
203835
  }, invalidateModule = (filePath) => {
203836
- const resolved = resolve17(filePath);
203836
+ const resolved = resolve18(filePath);
203837
203837
  invalidate(filePath);
203838
203838
  if (resolved !== filePath)
203839
203839
  invalidate(resolved);
@@ -203899,11 +203899,11 @@ var exports_simpleHTMLHMR = {};
203899
203899
  __export(exports_simpleHTMLHMR, {
203900
203900
  handleHTMLUpdate: () => handleHTMLUpdate
203901
203901
  });
203902
- import { resolve as resolve18 } from "path";
203902
+ import { resolve as resolve19 } from "path";
203903
203903
  var handleHTMLUpdate = async (htmlFilePath) => {
203904
203904
  let htmlContent;
203905
203905
  try {
203906
- const resolvedPath = resolve18(htmlFilePath);
203906
+ const resolvedPath = resolve19(htmlFilePath);
203907
203907
  const file3 = Bun.file(resolvedPath);
203908
203908
  if (!await file3.exists()) {
203909
203909
  return null;
@@ -203929,11 +203929,11 @@ var exports_simpleHTMXHMR = {};
203929
203929
  __export(exports_simpleHTMXHMR, {
203930
203930
  handleHTMXUpdate: () => handleHTMXUpdate
203931
203931
  });
203932
- import { resolve as resolve19 } from "path";
203932
+ import { resolve as resolve20 } from "path";
203933
203933
  var handleHTMXUpdate = async (htmxFilePath) => {
203934
203934
  let htmlContent;
203935
203935
  try {
203936
- const resolvedPath = resolve19(htmxFilePath);
203936
+ const resolvedPath = resolve20(htmxFilePath);
203937
203937
  const file3 = Bun.file(resolvedPath);
203938
203938
  if (!await file3.exists()) {
203939
203939
  return null;
@@ -203957,7 +203957,7 @@ var init_simpleHTMXHMR = () => {};
203957
203957
  // src/dev/rebuildTrigger.ts
203958
203958
  import { existsSync as existsSync16 } from "fs";
203959
203959
  import { rm as rm8 } from "fs/promises";
203960
- import { basename as basename8, relative as relative9, resolve as resolve20 } from "path";
203960
+ import { basename as basename8, relative as relative9, resolve as resolve21 } from "path";
203961
203961
  var moduleServerPromise, getModuleServer = () => moduleServerPromise, parseErrorLocationFromMessage = (msg) => {
203962
203962
  const pathLineCol = msg.match(/^([^\s:]+):(\d+)(?::(\d+))?/);
203963
203963
  if (pathLineCol) {
@@ -204029,7 +204029,7 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, parseError
204029
204029
  state.fileHashes.delete(filePathInSet);
204030
204030
  try {
204031
204031
  const affectedFiles = getAffectedFiles(state.dependencyGraph, filePathInSet);
204032
- const deletedPathResolved = resolve20(filePathInSet);
204032
+ const deletedPathResolved = resolve21(filePathInSet);
204033
204033
  affectedFiles.forEach((affectedFile) => {
204034
204034
  if (isValidDeletedAffectedFile(affectedFile, deletedPathResolved, processedFiles)) {
204035
204035
  validFiles.push(affectedFile);
@@ -204073,7 +204073,7 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, parseError
204073
204073
  if (storedHash !== undefined && storedHash === fileHash) {
204074
204074
  return;
204075
204075
  }
204076
- const normalizedFilePath = resolve20(filePathInSet);
204076
+ const normalizedFilePath = resolve21(filePathInSet);
204077
204077
  if (!processedFiles.has(normalizedFilePath)) {
204078
204078
  validFiles.push(normalizedFilePath);
204079
204079
  processedFiles.add(normalizedFilePath);
@@ -204151,7 +204151,7 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, parseError
204151
204151
  }
204152
204152
  if (framework === "unknown") {
204153
204153
  const { invalidate: invalidate2 } = (init_transformCache(), __toCommonJS(exports_transformCache));
204154
- invalidate2(resolve20(filePath));
204154
+ invalidate2(resolve21(filePath));
204155
204155
  const relPath = relative9(process.cwd(), filePath);
204156
204156
  logHmrUpdate(relPath);
204157
204157
  return;
@@ -204197,7 +204197,7 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, parseError
204197
204197
  }
204198
204198
  if (!graph)
204199
204199
  return componentFile;
204200
- const dependents = graph.dependents.get(resolve20(componentFile));
204200
+ const dependents = graph.dependents.get(resolve21(componentFile));
204201
204201
  if (!dependents)
204202
204202
  return componentFile;
204203
204203
  for (const dep of dependents) {
@@ -204206,7 +204206,7 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, parseError
204206
204206
  }
204207
204207
  return componentFile;
204208
204208
  }, resolveAngularPageEntries = (state, angularFiles, angularPagesPath) => {
204209
- const pageEntries = angularFiles.filter((file3) => file3.endsWith(".ts") && resolve20(file3).startsWith(angularPagesPath));
204209
+ const pageEntries = angularFiles.filter((file3) => file3.endsWith(".ts") && resolve21(file3).startsWith(angularPagesPath));
204210
204210
  if (pageEntries.length > 0 || !state.dependencyGraph) {
204211
204211
  return pageEntries;
204212
204212
  }
@@ -204215,7 +204215,7 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, parseError
204215
204215
  const lookupFile = resolveComponentLookupFile(componentFile, state.dependencyGraph);
204216
204216
  const affected = getAffectedFiles(state.dependencyGraph, lookupFile);
204217
204217
  affected.forEach((file3) => {
204218
- if (file3.endsWith(".ts") && resolve20(file3).startsWith(angularPagesPath)) {
204218
+ if (file3.endsWith(".ts") && resolve21(file3).startsWith(angularPagesPath)) {
204219
204219
  resolvedPages.add(file3);
204220
204220
  }
204221
204221
  });
@@ -204296,7 +204296,7 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, parseError
204296
204296
  const { clientPaths, serverPaths } = await compileAngular2(pageEntries, angularDir, true);
204297
204297
  serverPaths.forEach((serverPath) => {
204298
204298
  const fileBase = basename8(serverPath, ".js");
204299
- state.manifest[toPascal(fileBase)] = resolve20(serverPath);
204299
+ state.manifest[toPascal(fileBase)] = resolve21(serverPath);
204300
204300
  });
204301
204301
  if (clientPaths.length > 0) {
204302
204302
  await bundleAngularClient(state, clientPaths, state.resolvedPaths.buildDir);
@@ -204305,16 +204305,16 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, parseError
204305
204305
  const angularDir = config.angularDirectory ?? "";
204306
204306
  const angularFiles = filesToRebuild.filter((file3) => detectFramework(file3, state.resolvedPaths) === "angular");
204307
204307
  for (const file3 of angularFiles) {
204308
- state.fileHashes.set(resolve20(file3), computeFileHash(file3));
204308
+ state.fileHashes.set(resolve21(file3), computeFileHash(file3));
204309
204309
  }
204310
- const angularPagesPath = resolve20(angularDir, "pages");
204310
+ const angularPagesPath = resolve21(angularDir, "pages");
204311
204311
  const pageEntries = resolveAngularPageEntries(state, angularFiles, angularPagesPath);
204312
204312
  if (pageEntries.length > 0) {
204313
204313
  await compileAndBundleAngular(state, pageEntries, angularDir);
204314
204314
  invalidateAngularSsrCache();
204315
204315
  }
204316
204316
  if (pageEntries.length > 0) {
204317
- await rm8(resolve20(angularDir, "generated"), {
204317
+ await rm8(resolve21(angularDir, "generated"), {
204318
204318
  force: true,
204319
204319
  recursive: true
204320
204320
  });
@@ -204328,7 +204328,7 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, parseError
204328
204328
  return manifest;
204329
204329
  }, resolveReactEntryForPageFile = (normalized, pagesPathResolved, reactIndexesPath) => {
204330
204330
  const pageName = basename8(normalized, ".tsx");
204331
- const indexPath = resolve20(reactIndexesPath, `${pageName}.tsx`);
204331
+ const indexPath = resolve21(reactIndexesPath, `${pageName}.tsx`);
204332
204332
  if (!existsSync16(indexPath)) {
204333
204333
  return;
204334
204334
  }
@@ -204340,13 +204340,13 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, parseError
204340
204340
  return;
204341
204341
  }
204342
204342
  const pageName = basename8(dep, ".tsx");
204343
- const indexPath = resolve20(reactIndexesPath, `${pageName}.tsx`);
204343
+ const indexPath = resolve21(reactIndexesPath, `${pageName}.tsx`);
204344
204344
  if (existsSync16(indexPath) && !reactEntries.includes(indexPath)) {
204345
204345
  reactEntries.push(indexPath);
204346
204346
  }
204347
204347
  });
204348
204348
  }, resolveReactEntryForFile = (state, file3, pagesPathResolved, reactIndexesPath, reactEntries) => {
204349
- const normalized = resolve20(file3);
204349
+ const normalized = resolve21(file3);
204350
204350
  if (!normalized.startsWith(pagesPathResolved)) {
204351
204351
  resolveReactEntriesFromDeps(state, normalized, pagesPathResolved, reactIndexesPath, reactEntries);
204352
204352
  return;
@@ -204357,7 +204357,7 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, parseError
204357
204357
  }
204358
204358
  }, collectReactEntries = (state, filesToRebuild, reactPagesPath, reactIndexesPath) => {
204359
204359
  const reactEntries = [];
204360
- const pagesPathResolved = resolve20(reactPagesPath);
204360
+ const pagesPathResolved = resolve21(reactPagesPath);
204361
204361
  filesToRebuild.forEach((file3) => {
204362
204362
  resolveReactEntryForFile(state, file3, pagesPathResolved, reactIndexesPath, reactEntries);
204363
204363
  });
@@ -204368,7 +204368,7 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, parseError
204368
204368
  const { getDevVendorPaths: getDevVendorPaths2 } = await Promise.resolve().then(() => exports_devVendorPaths);
204369
204369
  const { rewriteReactImports: rewriteReactImports2 } = await Promise.resolve().then(() => (init_rewriteReactImports(), exports_rewriteReactImports));
204370
204370
  const clientRoot = await computeClientRoot(state.resolvedPaths);
204371
- const refreshEntry = resolve20(reactIndexesPath, "_refresh.tsx");
204371
+ const refreshEntry = resolve21(reactIndexesPath, "_refresh.tsx");
204372
204372
  if (!reactEntries.includes(refreshEntry)) {
204373
204373
  reactEntries.push(refreshEntry);
204374
204374
  }
@@ -204380,7 +204380,7 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, parseError
204380
204380
  setDevVendorPaths2(vendorPaths);
204381
204381
  }
204382
204382
  const { rmSync: rmSync2 } = await import("fs");
204383
- rmSync2(resolve20(buildDir, "react", "indexes"), {
204383
+ rmSync2(resolve21(buildDir, "react", "indexes"), {
204384
204384
  force: true,
204385
204385
  recursive: true
204386
204386
  });
@@ -204418,11 +204418,11 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, parseError
204418
204418
  if (isComponentFile2)
204419
204419
  return primaryFile;
204420
204420
  const { findNearestComponent: findNearestComponent2 } = await Promise.resolve().then(() => (init_transformCache(), exports_transformCache));
204421
- const nearest = findNearestComponent2(resolve20(primaryFile));
204421
+ const nearest = findNearestComponent2(resolve21(primaryFile));
204422
204422
  return nearest ?? primaryFile;
204423
204423
  }, handleReactModuleServerPath = async (state, reactFiles, startTime, onRebuildComplete) => {
204424
204424
  for (const file3 of reactFiles) {
204425
- state.fileHashes.set(resolve20(file3), computeFileHash(file3));
204425
+ state.fileHashes.set(resolve21(file3), computeFileHash(file3));
204426
204426
  }
204427
204427
  invalidateReactSsrCache();
204428
204428
  const primaryFile = reactFiles.find((file3) => !file3.replace(/\\/g, "/").includes("/pages/")) ?? reactFiles[0];
@@ -204464,8 +204464,8 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, parseError
204464
204464
  return state.manifest;
204465
204465
  }, handleReactFastPath = async (state, config, filesToRebuild, startTime, onRebuildComplete) => {
204466
204466
  const reactDir = config.reactDirectory ?? "";
204467
- const reactPagesPath = resolve20(reactDir, "pages");
204468
- const reactIndexesPath = resolve20(reactDir, "generated", "indexes");
204467
+ const reactPagesPath = resolve21(reactDir, "pages");
204468
+ const reactIndexesPath = resolve21(reactDir, "generated", "indexes");
204469
204469
  const { buildDir } = state.resolvedPaths;
204470
204470
  const reactFiles = filesToRebuild.filter((file3) => detectFramework(file3, state.resolvedPaths) === "react");
204471
204471
  if (reactFiles.length > 0) {
@@ -204477,7 +204477,7 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, parseError
204477
204477
  if (reactEntries.length > 0) {
204478
204478
  await bundleReactClient(state, reactEntries, reactIndexesPath, buildDir);
204479
204479
  }
204480
- await rm8(resolve20(reactDir, "generated"), { force: true, recursive: true });
204480
+ await rm8(resolve21(reactDir, "generated"), { force: true, recursive: true });
204481
204481
  const { manifest } = state;
204482
204482
  const duration = Date.now() - startTime;
204483
204483
  const reactPageFiles = reactFiles.filter((file3) => file3.replace(/\\/g, "/").includes("/pages/"));
@@ -204529,7 +204529,7 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, parseError
204529
204529
  });
204530
204530
  }, handleSvelteModuleServerPath = async (state, svelteFiles, startTime, onRebuildComplete) => {
204531
204531
  for (const file3 of svelteFiles) {
204532
- state.fileHashes.set(resolve20(file3), computeFileHash(file3));
204532
+ state.fileHashes.set(resolve21(file3), computeFileHash(file3));
204533
204533
  }
204534
204534
  invalidateSvelteSsrCache();
204535
204535
  const serverDuration = Date.now() - startTime;
@@ -204555,8 +204555,8 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, parseError
204555
204555
  const { svelteServerPaths, svelteIndexPaths, svelteClientPaths } = await compileSvelte2(svelteFiles, svelteDir, new Map, true);
204556
204556
  const serverEntries = [...svelteServerPaths];
204557
204557
  const clientEntries = [...svelteIndexPaths, ...svelteClientPaths];
204558
- const serverRoot = resolve20(svelteDir, "generated", "server");
204559
- const serverOutDir = resolve20(buildDir, basename8(svelteDir));
204558
+ const serverRoot = resolve21(svelteDir, "generated", "server");
204559
+ const serverOutDir = resolve21(buildDir, basename8(svelteDir));
204560
204560
  const [serverResult, clientResult] = await Promise.all([
204561
204561
  serverEntries.length > 0 ? bunBuild7({
204562
204562
  entrypoints: serverEntries,
@@ -204581,7 +204581,7 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, parseError
204581
204581
  handleServerManifestUpdate(state, serverResult);
204582
204582
  await handleClientManifestUpdate(state, clientResult, buildDir);
204583
204583
  }
204584
- await rm8(resolve20(svelteDir, "generated"), {
204584
+ await rm8(resolve21(svelteDir, "generated"), {
204585
204585
  force: true,
204586
204586
  recursive: true
204587
204587
  });
@@ -204644,7 +204644,7 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, parseError
204644
204644
  });
204645
204645
  }, handleVueModuleServerPath = async (state, vueFiles, nonVueFiles, startTime, onRebuildComplete) => {
204646
204646
  for (const file3 of [...vueFiles, ...nonVueFiles]) {
204647
- state.fileHashes.set(resolve20(file3), computeFileHash(file3));
204647
+ state.fileHashes.set(resolve21(file3), computeFileHash(file3));
204648
204648
  }
204649
204649
  invalidateVueSsrCache();
204650
204650
  await invalidateNonVueModules(nonVueFiles);
@@ -204753,10 +204753,10 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, parseError
204753
204753
  }, computeOutputPagesDir = (state, config, framework) => {
204754
204754
  const isSingle = !config.reactDirectory && !config.svelteDirectory && !config.vueDirectory && (framework === "html" ? !config.htmxDirectory : !config.htmlDirectory);
204755
204755
  if (isSingle) {
204756
- return resolve20(state.resolvedPaths.buildDir, "pages");
204756
+ return resolve21(state.resolvedPaths.buildDir, "pages");
204757
204757
  }
204758
204758
  const dirName = framework === "html" ? basename8(config.htmlDirectory ?? "html") : basename8(config.htmxDirectory ?? "htmx");
204759
- return resolve20(state.resolvedPaths.buildDir, dirName, "pages");
204759
+ return resolve21(state.resolvedPaths.buildDir, dirName, "pages");
204760
204760
  }, processHtmlPageUpdate = async (state, pageFile, builtHtmlPagePath, manifest, duration) => {
204761
204761
  try {
204762
204762
  const { handleHTMLUpdate: handleHTMLUpdate2 } = await Promise.resolve().then(() => (init_simpleHTMLHMR(), exports_simpleHTMLHMR));
@@ -204792,7 +204792,7 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, parseError
204792
204792
  const outputHtmlPages = computeOutputPagesDir(state, config, "html");
204793
204793
  for (const pageFile of htmlPageFiles) {
204794
204794
  const htmlPageName = basename8(pageFile);
204795
- const builtHtmlPagePath = resolve20(outputHtmlPages, htmlPageName);
204795
+ const builtHtmlPagePath = resolve21(outputHtmlPages, htmlPageName);
204796
204796
  await processHtmlPageUpdate(state, pageFile, builtHtmlPagePath, manifest, duration);
204797
204797
  }
204798
204798
  }, handleVueCssOnlyUpdate = (state, vueCssFiles, manifest, duration) => {
@@ -204857,7 +204857,7 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, parseError
204857
204857
  const cssKey = `${pascalName}CSS`;
204858
204858
  const cssUrl = manifest[cssKey] || null;
204859
204859
  const { vueHmrMetadata: vueHmrMetadata2 } = await Promise.resolve().then(() => (init_compileVue(), exports_compileVue));
204860
- const hmrMeta = vueHmrMetadata2.get(resolve20(vuePagePath));
204860
+ const hmrMeta = vueHmrMetadata2.get(resolve21(vuePagePath));
204861
204861
  const changeType = hmrMeta?.changeType ?? "full";
204862
204862
  if (changeType === "style-only") {
204863
204863
  broadcastVueStyleOnly(state, vuePagePath, baseName, cssUrl, hmrId, manifest, duration);
@@ -205091,7 +205091,7 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, parseError
205091
205091
  const outputHtmxPages = computeOutputPagesDir(state, config, "htmx");
205092
205092
  for (const htmxPageFile of htmxPageFiles) {
205093
205093
  const htmxPageName = basename8(htmxPageFile);
205094
- const builtHtmxPagePath = resolve20(outputHtmxPages, htmxPageName);
205094
+ const builtHtmxPagePath = resolve21(outputHtmxPages, htmxPageName);
205095
205095
  await processHtmxPageUpdate(state, htmxPageFile, builtHtmxPagePath, manifest, duration);
205096
205096
  }
205097
205097
  }, collectUpdatedModulePaths = (allModuleUpdates) => {
@@ -205200,7 +205200,7 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, parseError
205200
205200
  html = html.slice(0, bodyClose.index) + hmrScript + html.slice(bodyClose.index);
205201
205201
  writeFs(destPath, html);
205202
205202
  }, processMarkupFileFastPath = async (state, sourceFile, outputDir, framework, startTime, updateAssetPaths2, handleUpdate, readFs, writeFs) => {
205203
- const destPath = resolve20(outputDir, basename8(sourceFile));
205203
+ const destPath = resolve21(outputDir, basename8(sourceFile));
205204
205204
  const hmrScript = extractHmrScript(destPath, readFs);
205205
205205
  const source = await Bun.file(sourceFile).text();
205206
205206
  await Bun.write(destPath, source);
@@ -205562,7 +205562,7 @@ __export(exports_devBuild, {
205562
205562
  });
205563
205563
  import { readdir as readdir3 } from "fs/promises";
205564
205564
  import { statSync as statSync3 } from "fs";
205565
- import { resolve as resolve21 } from "path";
205565
+ import { resolve as resolve22 } from "path";
205566
205566
  var FRAMEWORK_DIR_KEYS, parseDirectoryConfig = (source) => {
205567
205567
  const config = {};
205568
205568
  const dirPattern = /(\w+Directory)\s*:\s*['"]([^'"]+)['"]/g;
@@ -205575,7 +205575,7 @@ var FRAMEWORK_DIR_KEYS, parseDirectoryConfig = (source) => {
205575
205575
  return Object.keys(config).length > 0 ? config : null;
205576
205576
  }, reloadConfig = async () => {
205577
205577
  try {
205578
- const configPath2 = resolve21(process.env.ABSOLUTE_CONFIG ?? "absolute.config.ts");
205578
+ const configPath2 = resolve22(process.env.ABSOLUTE_CONFIG ?? "absolute.config.ts");
205579
205579
  const source = await Bun.file(configPath2).text();
205580
205580
  return parseDirectoryConfig(source);
205581
205581
  } catch {
@@ -205654,7 +205654,7 @@ var FRAMEWORK_DIR_KEYS, parseDirectoryConfig = (source) => {
205654
205654
  state.fileChangeQueue.clear();
205655
205655
  }
205656
205656
  }, handleCachedReload = async () => {
205657
- const serverMtime = statSync3(resolve21(Bun.main)).mtimeMs;
205657
+ const serverMtime = statSync3(resolve22(Bun.main)).mtimeMs;
205658
205658
  const lastMtime = globalThis.__hmrServerMtime;
205659
205659
  globalThis.__hmrServerMtime = serverMtime;
205660
205660
  const cached = globalThis.__hmrDevResult;
@@ -205688,8 +205688,8 @@ var FRAMEWORK_DIR_KEYS, parseDirectoryConfig = (source) => {
205688
205688
  return true;
205689
205689
  }, resolveAbsoluteVersion2 = async () => {
205690
205690
  const candidates = [
205691
- resolve21(import.meta.dir, "..", "..", "package.json"),
205692
- resolve21(import.meta.dir, "..", "package.json")
205691
+ resolve22(import.meta.dir, "..", "..", "package.json"),
205692
+ resolve22(import.meta.dir, "..", "package.json")
205693
205693
  ];
205694
205694
  for (const candidate of candidates) {
205695
205695
  const found = await tryReadPackageVersion(candidate);
@@ -205702,7 +205702,7 @@ var FRAMEWORK_DIR_KEYS, parseDirectoryConfig = (source) => {
205702
205702
  const entries = await readdir3(vendorDir).catch(() => emptyStringArray);
205703
205703
  await Promise.all(entries.map(async (entry) => {
205704
205704
  const webPath = `/${framework}/vendor/${entry}`;
205705
- const bytes = await Bun.file(resolve21(vendorDir, entry)).bytes();
205705
+ const bytes = await Bun.file(resolve22(vendorDir, entry)).bytes();
205706
205706
  assetStore.set(webPath, bytes);
205707
205707
  }));
205708
205708
  }, devBuild = async (config) => {
@@ -205742,7 +205742,7 @@ var FRAMEWORK_DIR_KEYS, parseDirectoryConfig = (source) => {
205742
205742
  await populateAssetStore(state.assetStore, manifest ?? {}, state.resolvedPaths.buildDir);
205743
205743
  cleanStaleAssets(state.assetStore, manifest ?? {}, state.resolvedPaths.buildDir);
205744
205744
  const buildReactVendorTask = config.reactDirectory ? buildReactVendor(state.resolvedPaths.buildDir).then(async () => {
205745
- const vendorDir = resolve21(state.resolvedPaths.buildDir, "react", "vendor");
205745
+ const vendorDir = resolve22(state.resolvedPaths.buildDir, "react", "vendor");
205746
205746
  await loadVendorFiles(state.assetStore, vendorDir, "react");
205747
205747
  if (!globalThis.__reactModuleRef) {
205748
205748
  globalThis.__reactModuleRef = await import("react");
@@ -205750,17 +205750,17 @@ var FRAMEWORK_DIR_KEYS, parseDirectoryConfig = (source) => {
205750
205750
  return true;
205751
205751
  }) : undefined;
205752
205752
  const buildAngularVendorTask = config.angularDirectory ? buildAngularVendor(state.resolvedPaths.buildDir).then(async () => {
205753
- const vendorDir = resolve21(state.resolvedPaths.buildDir, "angular", "vendor");
205753
+ const vendorDir = resolve22(state.resolvedPaths.buildDir, "angular", "vendor");
205754
205754
  await loadVendorFiles(state.assetStore, vendorDir, "angular");
205755
205755
  return true;
205756
205756
  }) : undefined;
205757
205757
  const buildSvelteVendorTask = config.svelteDirectory ? buildSvelteVendor(state.resolvedPaths.buildDir).then(async () => {
205758
- const vendorDir = resolve21(state.resolvedPaths.buildDir, "svelte", "vendor");
205758
+ const vendorDir = resolve22(state.resolvedPaths.buildDir, "svelte", "vendor");
205759
205759
  await loadVendorFiles(state.assetStore, vendorDir, "svelte");
205760
205760
  return true;
205761
205761
  }) : undefined;
205762
205762
  const buildVueVendorTask = config.vueDirectory ? buildVueVendor(state.resolvedPaths.buildDir).then(async () => {
205763
- const vendorDir = resolve21(state.resolvedPaths.buildDir, "vue", "vendor");
205763
+ const vendorDir = resolve22(state.resolvedPaths.buildDir, "vue", "vendor");
205764
205764
  await loadVendorFiles(state.assetStore, vendorDir, "vue");
205765
205765
  return true;
205766
205766
  }) : undefined;
@@ -205774,7 +205774,7 @@ var FRAMEWORK_DIR_KEYS, parseDirectoryConfig = (source) => {
205774
205774
  config.htmxDirectory
205775
205775
  ].filter((dir) => Boolean(dir));
205776
205776
  const buildDepVendorTask = buildDepVendor2(state.resolvedPaths.buildDir, sourceDirs).then(async (depPaths) => {
205777
- const vendorDir = resolve21(state.resolvedPaths.buildDir, "vendor");
205777
+ const vendorDir = resolve22(state.resolvedPaths.buildDir, "vendor");
205778
205778
  await loadVendorFiles(state.assetStore, vendorDir, "vendor");
205779
205779
  globalThis.__depVendorPaths = depPaths;
205780
205780
  return true;
@@ -205804,7 +205804,7 @@ var FRAMEWORK_DIR_KEYS, parseDirectoryConfig = (source) => {
205804
205804
  manifest
205805
205805
  };
205806
205806
  globalThis.__hmrDevResult = result;
205807
- globalThis.__hmrServerMtime = statSync3(resolve21(Bun.main)).mtimeMs;
205807
+ globalThis.__hmrServerMtime = statSync3(resolve22(Bun.main)).mtimeMs;
205808
205808
  return result;
205809
205809
  };
205810
205810
  var init_devBuild = __esm(() => {
@@ -205839,5 +205839,5 @@ export {
205839
205839
  build
205840
205840
  };
205841
205841
 
205842
- //# debugId=072D590C2315E32B64756E2164756E21
205842
+ //# debugId=4AB2B5C69E73308464756E2164756E21
205843
205843
  //# sourceMappingURL=build.js.map