@absolutejs/absolute 0.19.0-beta.60 → 0.19.0-beta.62

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
@@ -172287,7 +172287,7 @@ var safeRemoveFromGraph = (graph, fullPath) => {
172287
172287
  operation: "add"
172288
172288
  });
172289
172289
  }
172290
- }, shouldSkipFilename = (filename, isStylesDir) => !isStylesDir && (filename === "compiled" || filename === "build" || filename === "indexes" || filename === "server" || filename === "client" || filename.includes("/compiled") || filename.includes("/build") || filename.includes("/indexes") || filename.includes("/server") || filename.includes("/client")) || filename.endsWith("/") || filename.includes(".tmp.") || filename.endsWith(".tmp") || filename.endsWith("~") || filename.startsWith(".#"), setupWatcher = (absolutePath, isStylesDir, state, onFileChange) => {
172290
+ }, shouldSkipFilename = (filename, isStylesDir) => !isStylesDir && (filename === "compiled" || filename === "build" || filename === "indexes" || filename === "server" || filename === "client" || filename.includes("/compiled/") || filename.includes("/build/") || filename.includes("/indexes/") || filename.includes("/server/") || filename.includes("/client/") || filename.startsWith("compiled/") || filename.startsWith("build/") || filename.startsWith("indexes/") || filename.startsWith("server/") || filename.startsWith("client/")) || filename.endsWith("/") || filename.includes(".tmp.") || filename.endsWith(".tmp") || filename.endsWith("~") || filename.startsWith(".#"), setupWatcher = (absolutePath, isStylesDir, state, onFileChange) => {
172291
172291
  const watcher = watch(absolutePath, { recursive: true }, (event, filename) => {
172292
172292
  if (!filename) {
172293
172293
  return;
@@ -203449,7 +203449,31 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, parseError
203449
203449
  invalidateModule2(file4);
203450
203450
  }
203451
203451
  const isComponentFile = primaryFile.endsWith(".tsx") || primaryFile.endsWith(".jsx");
203452
- const broadcastFile = isComponentFile ? primaryFile : reactFiles.find((f) => f.replace(/\\/g, "/").includes("/pages/") && (f.endsWith(".tsx") || f.endsWith(".jsx"))) ?? primaryFile;
203452
+ let broadcastFile = primaryFile;
203453
+ if (!isComponentFile) {
203454
+ const pageFile = reactFiles.find((f) => f.replace(/\\/g, "/").includes("/pages/") && (f.endsWith(".tsx") || f.endsWith(".jsx")));
203455
+ if (pageFile) {
203456
+ broadcastFile = pageFile;
203457
+ } else {
203458
+ const visited = new Set;
203459
+ const queue = [resolve21(primaryFile)];
203460
+ while (queue.length > 0) {
203461
+ const current = queue.shift();
203462
+ if (visited.has(current))
203463
+ continue;
203464
+ visited.add(current);
203465
+ if (current.replace(/\\/g, "/").includes("/pages/") && (current.endsWith(".tsx") || current.endsWith(".jsx"))) {
203466
+ broadcastFile = current;
203467
+ break;
203468
+ }
203469
+ const deps = state.dependencyGraph.dependents.get(current);
203470
+ if (deps) {
203471
+ for (const dep of deps)
203472
+ queue.push(dep);
203473
+ }
203474
+ }
203475
+ }
203476
+ }
203453
203477
  const pageModuleUrl = await getReactModuleUrl(broadcastFile);
203454
203478
  if (pageModuleUrl) {
203455
203479
  const serverDuration = Date.now() - startTime;
@@ -205220,5 +205244,5 @@ export {
205220
205244
  ANGULAR_INIT_TIMEOUT_MS
205221
205245
  };
205222
205246
 
205223
- //# debugId=9DD6277654370C6A64756E2164756E21
205247
+ //# debugId=19E4755F699A777E64756E2164756E21
205224
205248
  //# sourceMappingURL=index.js.map