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