@absolutejs/absolute 0.19.0-beta.136 → 0.19.0-beta.138

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
@@ -171770,7 +171770,8 @@ var isDev, extractBuildError = (logs, pass, label, frameworkNames, isIncremental
171770
171770
  for (const srcPath of urlReferencedFiles) {
171771
171771
  const rel = relative7(projectRoot, srcPath).replace(/\\/g, "/");
171772
171772
  const name = basename5(srcPath);
171773
- const url = `/@src/${rel}`;
171773
+ const mtime = Math.round(statSync(srcPath).mtimeMs);
171774
+ const url = `/@src/${rel}?v=${mtime}`;
171774
171775
  urlFileMap.set(name, url);
171775
171776
  urlFileMap.set(name.replace(/\.tsx?$/, ".js"), url);
171776
171777
  }
@@ -172347,13 +172348,6 @@ var detectFramework = (filePath, resolved) => {
172347
172348
  }
172348
172349
  return "unknown";
172349
172350
  }, getWatchPaths = (config, resolved) => {
172350
- const paths = [];
172351
- const push = (base, sub) => {
172352
- if (!base)
172353
- return;
172354
- const normalizedBase = normalizePath(base);
172355
- paths.push(sub ? `${normalizedBase}/${sub}` : normalizedBase);
172356
- };
172357
172351
  const cfg = resolved ?? {
172358
172352
  angularDir: config.angularDirectory,
172359
172353
  assetsDir: config.assetsDirectory,
@@ -172364,18 +172358,20 @@ var detectFramework = (filePath, resolved) => {
172364
172358
  svelteDir: config.svelteDirectory,
172365
172359
  vueDir: config.vueDirectory
172366
172360
  };
172367
- push(cfg.reactDir);
172368
- push(cfg.svelteDir);
172369
- push(cfg.vueDir);
172370
- push(cfg.angularDir);
172371
- push(cfg.htmlDir, "pages");
172372
- push(cfg.htmlDir, "scripts");
172373
- push(cfg.htmlDir, "styles");
172374
- push(cfg.htmxDir, "pages");
172375
- push(cfg.htmxDir, "styles");
172376
- push(cfg.assetsDir);
172377
- push(cfg.stylesDir);
172378
- return paths;
172361
+ const allDirs = [
172362
+ cfg.reactDir,
172363
+ cfg.svelteDir,
172364
+ cfg.vueDir,
172365
+ cfg.angularDir,
172366
+ cfg.htmlDir,
172367
+ cfg.htmxDir,
172368
+ cfg.assetsDir,
172369
+ cfg.stylesDir
172370
+ ].filter((d) => Boolean(d)).map(normalizePath);
172371
+ const root = commonAncestor(allDirs);
172372
+ if (root)
172373
+ return [root];
172374
+ return allDirs;
172379
172375
  }, shouldIgnorePath = (path, resolved) => {
172380
172376
  const normalizedPath = path.replace(/\\/g, "/");
172381
172377
  if (resolved?.stylesDir && normalizedPath.startsWith(resolved.stylesDir)) {
@@ -172383,7 +172379,9 @@ var detectFramework = (filePath, resolved) => {
172383
172379
  }
172384
172380
  return normalizedPath.includes("/build/") || normalizedPath.includes("/compiled/") || normalizedPath.includes("/indexes/") || normalizedPath.includes("/server/") || normalizedPath.includes("/client/") || normalizedPath.includes("/node_modules/") || normalizedPath.includes("/.git/") || normalizedPath.endsWith(".log") || normalizedPath.endsWith(".tmp") || normalizedPath.startsWith(".") || normalizedPath === "compiled" || normalizedPath.endsWith("/compiled") || normalizedPath.endsWith("/compiled/");
172385
172381
  };
172386
- var init_pathUtils = () => {};
172382
+ var init_pathUtils = __esm(() => {
172383
+ init_commonAncestor();
172384
+ });
172387
172385
 
172388
172386
  // src/dev/fileWatcher.ts
172389
172387
  import { watch } from "fs";
@@ -205699,5 +205697,5 @@ export {
205699
205697
  ANGULAR_INIT_TIMEOUT_MS
205700
205698
  };
205701
205699
 
205702
- //# debugId=7DC4A54EB02475EB64756E2164756E21
205700
+ //# debugId=6D3618035AB14BCF64756E2164756E21
205703
205701
  //# sourceMappingURL=index.js.map