@absolutejs/absolute 0.19.0-beta.55 → 0.19.0-beta.57
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 +24 -9
- package/dist/build.js.map +3 -3
- package/dist/index.js +24 -9
- package/dist/index.js.map +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -202997,7 +202997,12 @@ var init_simpleHTMXHMR = () => {};
|
|
|
202997
202997
|
import { existsSync as existsSync14 } from "fs";
|
|
202998
202998
|
import { rm as rm8 } from "fs/promises";
|
|
202999
202999
|
import { basename as basename8, relative as relative8, resolve as resolve21 } from "path";
|
|
203000
|
-
var
|
|
203000
|
+
var moduleServerPromise = null, getModuleServer = () => {
|
|
203001
|
+
if (!moduleServerPromise) {
|
|
203002
|
+
moduleServerPromise = Promise.resolve().then(() => (init_moduleServer(), exports_moduleServer));
|
|
203003
|
+
}
|
|
203004
|
+
return moduleServerPromise;
|
|
203005
|
+
}, parseErrorLocationFromMessage = (msg) => {
|
|
203001
203006
|
const pathLineCol = msg.match(/^([^\s:]+):(\d+)(?::(\d+))?/);
|
|
203002
203007
|
if (pathLineCol) {
|
|
203003
203008
|
const [, file4, lineStr, colStr] = pathLineCol;
|
|
@@ -203444,12 +203449,22 @@ var parseErrorLocationFromMessage = (msg) => {
|
|
|
203444
203449
|
for (const file4 of reactFiles) {
|
|
203445
203450
|
state.fileHashes.set(resolve21(file4), computeFileHash(file4));
|
|
203446
203451
|
}
|
|
203447
|
-
const
|
|
203448
|
-
|
|
203449
|
-
|
|
203450
|
-
|
|
203451
|
-
|
|
203452
|
-
|
|
203452
|
+
const primaryFile = reactFiles.find((f) => !f.replace(/\\/g, "/").includes("/pages/")) ?? reactFiles[0];
|
|
203453
|
+
if (!primaryFile) {
|
|
203454
|
+
onRebuildComplete({
|
|
203455
|
+
hmrState: state,
|
|
203456
|
+
manifest: state.manifest
|
|
203457
|
+
});
|
|
203458
|
+
return state.manifest;
|
|
203459
|
+
}
|
|
203460
|
+
const { invalidateModule: invalidateModule2 } = await getModuleServer();
|
|
203461
|
+
for (const file4 of reactFiles) {
|
|
203462
|
+
invalidateModule2(file4);
|
|
203463
|
+
}
|
|
203464
|
+
const pageModuleUrl = await getReactModuleUrl(primaryFile);
|
|
203465
|
+
if (pageModuleUrl) {
|
|
203466
|
+
const serverDuration = Date.now() - startTime;
|
|
203467
|
+
state.lastHmrPath = relative8(process.cwd(), primaryFile).replace(/\\/g, "/");
|
|
203453
203468
|
state.lastHmrFramework = "react";
|
|
203454
203469
|
broadcastToClients(state, {
|
|
203455
203470
|
data: {
|
|
@@ -203458,7 +203473,7 @@ var parseErrorLocationFromMessage = (msg) => {
|
|
|
203458
203473
|
hasCSSChanges: false,
|
|
203459
203474
|
manifest: state.manifest,
|
|
203460
203475
|
pageModuleUrl,
|
|
203461
|
-
primarySource:
|
|
203476
|
+
primarySource: primaryFile,
|
|
203462
203477
|
serverDuration,
|
|
203463
203478
|
sourceFiles: reactFiles
|
|
203464
203479
|
},
|
|
@@ -205215,5 +205230,5 @@ export {
|
|
|
205215
205230
|
ANGULAR_INIT_TIMEOUT_MS
|
|
205216
205231
|
};
|
|
205217
205232
|
|
|
205218
|
-
//# debugId=
|
|
205233
|
+
//# debugId=DF2FE14FBDC7683D64756E2164756E21
|
|
205219
205234
|
//# sourceMappingURL=index.js.map
|