@absolutejs/absolute 0.19.0-beta.135 → 0.19.0-beta.137

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