@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/.absolutejs/tsconfig.tsbuildinfo +1 -1
- package/dist/build.js +26 -2
- package/dist/build.js.map +3 -3
- package/dist/index.js +26 -2
- package/dist/index.js.map +3 -3
- package/package.json +1 -1
package/dist/build.js
CHANGED
|
@@ -203449,7 +203449,31 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, parseError
|
|
|
203449
203449
|
invalidateModule2(file3);
|
|
203450
203450
|
}
|
|
203451
203451
|
const isComponentFile = primaryFile.endsWith(".tsx") || primaryFile.endsWith(".jsx");
|
|
203452
|
-
|
|
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 = [resolve20(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;
|
|
@@ -204832,5 +204856,5 @@ export {
|
|
|
204832
204856
|
build
|
|
204833
204857
|
};
|
|
204834
204858
|
|
|
204835
|
-
//# debugId=
|
|
204859
|
+
//# debugId=A3533A94E0FB392764756E2164756E21
|
|
204836
204860
|
//# sourceMappingURL=build.js.map
|