@absolutejs/absolute 0.19.0-beta.129 → 0.19.0-beta.130

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/build.js CHANGED
@@ -9865,7 +9865,7 @@ ${lanes.join(`
9865
9865
  return process.memoryUsage().heapUsed;
9866
9866
  },
9867
9867
  getFileSize(path) {
9868
- const stat2 = statSync(path);
9868
+ const stat2 = statSync2(path);
9869
9869
  if (stat2 == null ? undefined : stat2.isFile()) {
9870
9870
  return stat2.size;
9871
9871
  }
@@ -9908,7 +9908,7 @@ ${lanes.join(`
9908
9908
  }
9909
9909
  };
9910
9910
  return nodeSystem;
9911
- function statSync(path) {
9911
+ function statSync2(path) {
9912
9912
  try {
9913
9913
  return _fs.statSync(path, statSyncOptions);
9914
9914
  } catch {
@@ -9960,7 +9960,7 @@ ${lanes.join(`
9960
9960
  activeSession.post("Profiler.stop", (err, { profile }) => {
9961
9961
  var _a;
9962
9962
  if (!err) {
9963
- if ((_a = statSync(profilePath)) == null ? undefined : _a.isDirectory()) {
9963
+ if ((_a = statSync2(profilePath)) == null ? undefined : _a.isDirectory()) {
9964
9964
  profilePath = _path.join(profilePath, `${(/* @__PURE__ */ new Date()).toISOString().replace(/:/g, "-")}+P${process.pid}.cpuprofile`);
9965
9965
  }
9966
9966
  try {
@@ -10069,7 +10069,7 @@ ${lanes.join(`
10069
10069
  let stat2;
10070
10070
  if (typeof dirent === "string" || dirent.isSymbolicLink()) {
10071
10071
  const name = combinePaths(path, entry);
10072
- stat2 = statSync(name);
10072
+ stat2 = statSync2(name);
10073
10073
  if (!stat2) {
10074
10074
  continue;
10075
10075
  }
@@ -10093,7 +10093,7 @@ ${lanes.join(`
10093
10093
  return matchFiles(path, extensions, excludes, includes, useCaseSensitiveFileNames2, process.cwd(), depth, getAccessibleFileSystemEntries, realpath);
10094
10094
  }
10095
10095
  function fileSystemEntryExists(path, entryKind) {
10096
- const stat2 = statSync(path);
10096
+ const stat2 = statSync2(path);
10097
10097
  if (!stat2) {
10098
10098
  return false;
10099
10099
  }
@@ -10127,7 +10127,7 @@ ${lanes.join(`
10127
10127
  }
10128
10128
  function getModifiedTime3(path) {
10129
10129
  var _a;
10130
- return (_a = statSync(path)) == null ? undefined : _a.mtime;
10130
+ return (_a = statSync2(path)) == null ? undefined : _a.mtime;
10131
10131
  }
10132
10132
  function setModifiedTime(path, time) {
10133
10133
  try {
@@ -171220,13 +171220,17 @@ var isDev, extractBuildError = (logs, pass, label, frameworkNames, isIncremental
171220
171220
  globalThis.__absoluteVersion = pkg.version;
171221
171221
  return;
171222
171222
  }
171223
- }, scanWorkerReferences = async (dirs) => {
171223
+ }, SKIP_DIRS, scanWorkerReferences = async (dirs) => {
171224
171224
  const urlPattern = /new\s+URL\(\s*["'](\.\.?\/[^"']+)["']\s*,\s*import\.meta\.url\s*\)/g;
171225
171225
  const resolvePattern = /import\.meta\.resolve\(\s*["'](\.\.?\/[^"']+)["']\s*\)/g;
171226
171226
  const workerPaths = new Set;
171227
171227
  for (const dir of dirs) {
171228
- const glob = new Glob5("**/*.{ts,tsx,js,jsx}");
171228
+ const glob = new Glob5("**/*.{ts,tsx,js,jsx,svelte,vue}");
171229
171229
  for await (const file3 of glob.scan({ absolute: true, cwd: dir })) {
171230
+ const relToDir = file3.slice(dir.length + 1);
171231
+ const firstSegment = relToDir.split("/")[0];
171232
+ if (firstSegment && SKIP_DIRS.has(firstSegment))
171233
+ continue;
171230
171234
  const content = readFileSync5(file3, "utf-8");
171231
171235
  for (const pattern of [urlPattern, resolvePattern]) {
171232
171236
  pattern.lastIndex = 0;
@@ -171236,7 +171240,10 @@ var isDev, extractBuildError = (logs, pass, label, frameworkNames, isIncremental
171236
171240
  if (!relPath)
171237
171241
  continue;
171238
171242
  const absPath = resolve10(file3, "..", relPath);
171239
- workerPaths.add(absPath);
171243
+ try {
171244
+ statSync(absPath);
171245
+ workerPaths.add(absPath);
171246
+ } catch {}
171240
171247
  }
171241
171248
  }
171242
171249
  }
@@ -171884,6 +171891,7 @@ var init_build = __esm(() => {
171884
171891
  init_logger();
171885
171892
  init_validateSafePath();
171886
171893
  isDev = env2.NODE_ENV === "development";
171894
+ SKIP_DIRS = new Set(["server", "client", "compiled", "indexes", "build", "node_modules"]);
171887
171895
  vueFeatureFlags = {
171888
171896
  __VUE_OPTIONS_API__: "true",
171889
171897
  __VUE_PROD_DEVTOOLS__: isDev ? "true" : "false",
@@ -202527,7 +202535,7 @@ __export(exports_moduleServer, {
202527
202535
  createModuleServer: () => createModuleServer,
202528
202536
  SRC_URL_PREFIX: () => SRC_URL_PREFIX
202529
202537
  });
202530
- import { existsSync as existsSync13, readFileSync as readFileSync9, statSync } from "fs";
202538
+ import { existsSync as existsSync13, readFileSync as readFileSync9, statSync as statSync2 } from "fs";
202531
202539
  import { basename as basename7, dirname as dirname8, extname as extname3, resolve as resolve17, relative as relative8 } from "path";
202532
202540
  var SRC_PREFIX = "/@src/", jsTranspiler2, tsTranspiler2, tsxTranspiler, TRANSPILABLE, ALL_EXPORTS_RE, STRING_CONTENTS_RE, preserveTypeExports = (originalSource, transpiled, valueExports) => {
202533
202541
  const codeOnly = originalSource.replace(STRING_CONTENTS_RE, '""');
@@ -202561,7 +202569,7 @@ ${stubs}
202561
202569
  let mtime = mtimeCache.get(absPath);
202562
202570
  if (mtime === undefined) {
202563
202571
  try {
202564
- mtime = Math.round(statSync(absPath).mtimeMs);
202572
+ mtime = Math.round(statSync2(absPath).mtimeMs);
202565
202573
  mtimeCache.set(absPath, mtime);
202566
202574
  } catch {
202567
202575
  return base;
@@ -202604,7 +202612,7 @@ ${stubs}
202604
202612
  ];
202605
202613
  for (const ext of extensions) {
202606
202614
  try {
202607
- statSync(resolve17(projectRoot, srcPath + ext));
202615
+ statSync2(resolve17(projectRoot, srcPath + ext));
202608
202616
  srcPath += ext;
202609
202617
  break;
202610
202618
  } catch {}
@@ -202638,7 +202646,7 @@ ${stubs}
202638
202646
  ];
202639
202647
  for (const ext of extensions) {
202640
202648
  try {
202641
- statSync(resolve17(projectRoot, srcPath + ext));
202649
+ statSync2(resolve17(projectRoot, srcPath + ext));
202642
202650
  srcPath += ext;
202643
202651
  break;
202644
202652
  } catch {}
@@ -203006,7 +203014,7 @@ export default {};
203006
203014
  const tryExts = [".tsx", ".ts", ".jsx", ".js", ".svelte", ".vue"];
203007
203015
  for (const tryExt of tryExts) {
203008
203016
  try {
203009
- statSync(filePath + tryExt);
203017
+ statSync2(filePath + tryExt);
203010
203018
  filePath += tryExt;
203011
203019
  ext = tryExt;
203012
203020
  break;
@@ -203024,7 +203032,7 @@ export default {};
203024
203032
  const cached2 = getTransformed(filePath);
203025
203033
  if (cached2)
203026
203034
  return jsResponse(cached2);
203027
- const stat3 = statSync(filePath);
203035
+ const stat3 = statSync2(filePath);
203028
203036
  const content2 = await transformSvelteFile(filePath, projectRoot, rewriter);
203029
203037
  setTransformed(filePath, content2, stat3.mtimeMs, extractImportedFiles(content2, projectRoot));
203030
203038
  return jsResponse(content2);
@@ -203033,7 +203041,7 @@ export default {};
203033
203041
  const cached2 = getTransformed(filePath);
203034
203042
  if (cached2)
203035
203043
  return jsResponse(cached2);
203036
- const stat3 = statSync(filePath);
203044
+ const stat3 = statSync2(filePath);
203037
203045
  const content2 = await transformVueFile(filePath, projectRoot, rewriter, frameworkDirs?.vue);
203038
203046
  setTransformed(filePath, content2, stat3.mtimeMs, extractImportedFiles(content2, projectRoot));
203039
203047
  return jsResponse(content2);
@@ -203043,7 +203051,7 @@ export default {};
203043
203051
  const cached = getTransformed(filePath);
203044
203052
  if (cached)
203045
203053
  return jsResponse(cached);
203046
- const stat2 = statSync(filePath);
203054
+ const stat2 = statSync2(filePath);
203047
203055
  const content = REACT_EXTENSIONS.has(ext) ? transformReactFile(filePath, projectRoot, rewriter) : transformPlainFile(filePath, projectRoot, rewriter);
203048
203056
  setTransformed(filePath, content, stat2.mtimeMs, extractImportedFiles(content, projectRoot));
203049
203057
  return jsResponse(content);
@@ -204774,7 +204782,7 @@ __export(exports_devBuild, {
204774
204782
  devBuild: () => devBuild
204775
204783
  });
204776
204784
  import { readdir as readdir3 } from "fs/promises";
204777
- import { statSync as statSync2 } from "fs";
204785
+ import { statSync as statSync3 } from "fs";
204778
204786
  import { resolve as resolve21 } from "path";
204779
204787
  var FRAMEWORK_DIR_KEYS, parseDirectoryConfig = (source) => {
204780
204788
  const config = {};
@@ -204867,7 +204875,7 @@ var FRAMEWORK_DIR_KEYS, parseDirectoryConfig = (source) => {
204867
204875
  state.fileChangeQueue.clear();
204868
204876
  }
204869
204877
  }, handleCachedReload = async () => {
204870
- const serverMtime = statSync2(resolve21(Bun.main)).mtimeMs;
204878
+ const serverMtime = statSync3(resolve21(Bun.main)).mtimeMs;
204871
204879
  const lastMtime = globalThis.__hmrServerMtime;
204872
204880
  globalThis.__hmrServerMtime = serverMtime;
204873
204881
  const cached = globalThis.__hmrDevResult;
@@ -205017,7 +205025,7 @@ var FRAMEWORK_DIR_KEYS, parseDirectoryConfig = (source) => {
205017
205025
  manifest
205018
205026
  };
205019
205027
  globalThis.__hmrDevResult = result;
205020
- globalThis.__hmrServerMtime = statSync2(resolve21(Bun.main)).mtimeMs;
205028
+ globalThis.__hmrServerMtime = statSync3(resolve21(Bun.main)).mtimeMs;
205021
205029
  return result;
205022
205030
  };
205023
205031
  var init_devBuild = __esm(() => {
@@ -205052,5 +205060,5 @@ export {
205052
205060
  build
205053
205061
  };
205054
205062
 
205055
- //# debugId=C556D703017A300564756E2164756E21
205063
+ //# debugId=CFC34B6C40EC69F864756E2164756E21
205056
205064
  //# sourceMappingURL=build.js.map