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

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
@@ -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=EBFB6FE4FD955D6864756E2164756E21
205224
205248
  //# sourceMappingURL=index.js.map