@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/build.js CHANGED
@@ -171690,7 +171690,10 @@ var isDev, extractBuildError = (logs, pass, label, frameworkNames, isIncremental
171690
171690
  if (hmr) {
171691
171691
  for (const srcPath of urlReferencedFiles) {
171692
171692
  const rel = relative7(projectRoot, srcPath).replace(/\\/g, "/");
171693
- urlFileMap.set(basename5(srcPath), `/@src/${rel}`);
171693
+ const name = basename5(srcPath);
171694
+ const url = `/@src/${rel}`;
171695
+ urlFileMap.set(name, url);
171696
+ urlFileMap.set(name.replace(/\.tsx?$/, ".js"), url);
171694
171697
  }
171695
171698
  } else {
171696
171699
  for (const srcPath of urlReferencedFiles) {
@@ -172265,13 +172268,6 @@ var detectFramework = (filePath, resolved) => {
172265
172268
  }
172266
172269
  return "unknown";
172267
172270
  }, getWatchPaths = (config, resolved) => {
172268
- const paths = [];
172269
- const push = (base, sub) => {
172270
- if (!base)
172271
- return;
172272
- const normalizedBase = normalizePath(base);
172273
- paths.push(sub ? `${normalizedBase}/${sub}` : normalizedBase);
172274
- };
172275
172271
  const cfg = resolved ?? {
172276
172272
  angularDir: config.angularDirectory,
172277
172273
  assetsDir: config.assetsDirectory,
@@ -172282,18 +172278,20 @@ var detectFramework = (filePath, resolved) => {
172282
172278
  svelteDir: config.svelteDirectory,
172283
172279
  vueDir: config.vueDirectory
172284
172280
  };
172285
- push(cfg.reactDir);
172286
- push(cfg.svelteDir);
172287
- push(cfg.vueDir);
172288
- push(cfg.angularDir);
172289
- push(cfg.htmlDir, "pages");
172290
- push(cfg.htmlDir, "scripts");
172291
- push(cfg.htmlDir, "styles");
172292
- push(cfg.htmxDir, "pages");
172293
- push(cfg.htmxDir, "styles");
172294
- push(cfg.assetsDir);
172295
- push(cfg.stylesDir);
172296
- return paths;
172281
+ const allDirs = [
172282
+ cfg.reactDir,
172283
+ cfg.svelteDir,
172284
+ cfg.vueDir,
172285
+ cfg.angularDir,
172286
+ cfg.htmlDir,
172287
+ cfg.htmxDir,
172288
+ cfg.assetsDir,
172289
+ cfg.stylesDir
172290
+ ].filter((d) => Boolean(d)).map(normalizePath);
172291
+ const root = commonAncestor(allDirs);
172292
+ if (root)
172293
+ return [root];
172294
+ return allDirs;
172297
172295
  }, shouldIgnorePath = (path, resolved) => {
172298
172296
  const normalizedPath = path.replace(/\\/g, "/");
172299
172297
  if (resolved?.stylesDir && normalizedPath.startsWith(resolved.stylesDir)) {
@@ -172301,7 +172299,9 @@ var detectFramework = (filePath, resolved) => {
172301
172299
  }
172302
172300
  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/");
172303
172301
  };
172304
- var init_pathUtils = () => {};
172302
+ var init_pathUtils = __esm(() => {
172303
+ init_commonAncestor();
172304
+ });
172305
172305
 
172306
172306
  // src/dev/fileWatcher.ts
172307
172307
  import { watch } from "fs";
@@ -205034,5 +205034,5 @@ export {
205034
205034
  build
205035
205035
  };
205036
205036
 
205037
- //# debugId=6DD1FD295802A4FC64756E2164756E21
205037
+ //# debugId=DF6C903EF35751CA64756E2164756E21
205038
205038
  //# sourceMappingURL=build.js.map