@absolutejs/absolute 0.19.0-beta.63 → 0.19.0-beta.65
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/.claude/settings.local.json +5 -1
- package/dist/build.js +4 -27
- package/dist/build.js.map +3 -3
- package/dist/dev/client/handlers/react.ts +57 -28
- package/dist/index.js +4 -27
- package/dist/index.js.map +3 -3
- package/package.json +1 -1
|
@@ -218,7 +218,11 @@
|
|
|
218
218
|
"Bash(kill 881290)",
|
|
219
219
|
"Bash(sed -i 's/\"\"\"\"@absolutejs\\\\/absolute\"\"\"\": \"\"\"\"0.19.0-beta.60\"\"\"\"/\"\"\"\"@absolutejs\\\\/absolute\"\"\"\": \"\"\"\"0.19.0-beta.61\"\"\"\"/' package.json)",
|
|
220
220
|
"Bash(kill 883998)",
|
|
221
|
-
"Bash(sed -i 's/\"\"\"\"@absolutejs\\\\/absolute\"\"\"\": \"\"\"\"0.19.0-beta.61\"\"\"\"/\"\"\"\"@absolutejs\\\\/absolute\"\"\"\": \"\"\"\"0.19.0-beta.62\"\"\"\"/' package.json)"
|
|
221
|
+
"Bash(sed -i 's/\"\"\"\"@absolutejs\\\\/absolute\"\"\"\": \"\"\"\"0.19.0-beta.61\"\"\"\"/\"\"\"\"@absolutejs\\\\/absolute\"\"\"\": \"\"\"\"0.19.0-beta.62\"\"\"\"/' package.json)",
|
|
222
|
+
"Bash(kill 892052)",
|
|
223
|
+
"Bash(sed -i 's/\"\"\"\"@absolutejs\\\\/absolute\"\"\"\": \"\"\"\"0.19.0-beta.62\"\"\"\"/\"\"\"\"@absolutejs\\\\/absolute\"\"\"\": \"\"\"\"0.19.0-beta.63\"\"\"\"/' package.json)",
|
|
224
|
+
"Bash(kill 895541)",
|
|
225
|
+
"Bash(sed -i 's/\"\"\"\"@absolutejs\\\\/absolute\"\"\"\": \"\"\"\"0.19.0-beta.63\"\"\"\"/\"\"\"\"@absolutejs\\\\/absolute\"\"\"\": \"\"\"\"0.19.0-beta.64\"\"\"\"/' package.json)"
|
|
222
226
|
]
|
|
223
227
|
}
|
|
224
228
|
}
|
package/dist/build.js
CHANGED
|
@@ -203450,38 +203450,15 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, parseError
|
|
|
203450
203450
|
invalidateModule2(file3);
|
|
203451
203451
|
}
|
|
203452
203452
|
const isComponentFile = primaryFile.endsWith(".tsx") || primaryFile.endsWith(".jsx");
|
|
203453
|
-
|
|
203454
|
-
|
|
203455
|
-
const pageFile = reactFiles.find((f) => f.replace(/\\/g, "/").includes("/pages/") && (f.endsWith(".tsx") || f.endsWith(".jsx")));
|
|
203456
|
-
if (pageFile) {
|
|
203457
|
-
broadcastFile = pageFile;
|
|
203458
|
-
} else {
|
|
203459
|
-
const visited = new Set;
|
|
203460
|
-
const queue = [resolve20(primaryFile)];
|
|
203461
|
-
while (queue.length > 0) {
|
|
203462
|
-
const current = queue.shift();
|
|
203463
|
-
if (visited.has(current))
|
|
203464
|
-
continue;
|
|
203465
|
-
visited.add(current);
|
|
203466
|
-
if (current.replace(/\\/g, "/").includes("/pages/") && (current.endsWith(".tsx") || current.endsWith(".jsx"))) {
|
|
203467
|
-
broadcastFile = current;
|
|
203468
|
-
break;
|
|
203469
|
-
}
|
|
203470
|
-
const deps = state.dependencyGraph.dependents.get(current);
|
|
203471
|
-
if (deps) {
|
|
203472
|
-
for (const dep of deps)
|
|
203473
|
-
queue.push(dep);
|
|
203474
|
-
}
|
|
203475
|
-
}
|
|
203476
|
-
}
|
|
203477
|
-
}
|
|
203478
|
-
const pageModuleUrl = await getReactModuleUrl(broadcastFile);
|
|
203453
|
+
const pageModuleUrl = await getReactModuleUrl(primaryFile);
|
|
203454
|
+
const dataModuleUrl = isComponentFile ? undefined : pageModuleUrl;
|
|
203479
203455
|
if (pageModuleUrl) {
|
|
203480
203456
|
const serverDuration = Date.now() - startTime;
|
|
203481
203457
|
state.lastHmrPath = relative9(process.cwd(), primaryFile).replace(/\\/g, "/");
|
|
203482
203458
|
state.lastHmrFramework = "react";
|
|
203483
203459
|
broadcastToClients(state, {
|
|
203484
203460
|
data: {
|
|
203461
|
+
dataModuleUrl,
|
|
203485
203462
|
framework: "react",
|
|
203486
203463
|
hasComponentChanges: true,
|
|
203487
203464
|
hasCSSChanges: false,
|
|
@@ -204857,5 +204834,5 @@ export {
|
|
|
204857
204834
|
build
|
|
204858
204835
|
};
|
|
204859
204836
|
|
|
204860
|
-
//# debugId=
|
|
204837
|
+
//# debugId=421E365206B8CDCA64756E2164756E21
|
|
204861
204838
|
//# sourceMappingURL=build.js.map
|