@absolutejs/absolute 0.19.0-beta.55 → 0.19.0-beta.56

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
@@ -203444,12 +203444,22 @@ var parseErrorLocationFromMessage = (msg) => {
203444
203444
  for (const file4 of reactFiles) {
203445
203445
  state.fileHashes.set(resolve21(file4), computeFileHash(file4));
203446
203446
  }
203447
- const serverDuration = Date.now() - startTime;
203448
- for (const changedFile of reactFiles) {
203449
- const pageModuleUrl = await getReactModuleUrl(changedFile);
203450
- if (!pageModuleUrl)
203451
- continue;
203452
- state.lastHmrPath = changedFile;
203447
+ const primaryFile = reactFiles.find((f) => !f.replace(/\\/g, "/").includes("/pages/")) ?? reactFiles[0];
203448
+ if (!primaryFile) {
203449
+ onRebuildComplete({
203450
+ hmrState: state,
203451
+ manifest: state.manifest
203452
+ });
203453
+ return state.manifest;
203454
+ }
203455
+ for (const file4 of reactFiles) {
203456
+ const { invalidateModule: invalidateModule2 } = await Promise.resolve().then(() => (init_moduleServer(), exports_moduleServer));
203457
+ invalidateModule2(file4);
203458
+ }
203459
+ const pageModuleUrl = await getReactModuleUrl(primaryFile);
203460
+ if (pageModuleUrl) {
203461
+ const serverDuration = Date.now() - startTime;
203462
+ state.lastHmrPath = relative8(process.cwd(), primaryFile).replace(/\\/g, "/");
203453
203463
  state.lastHmrFramework = "react";
203454
203464
  broadcastToClients(state, {
203455
203465
  data: {
@@ -203458,7 +203468,7 @@ var parseErrorLocationFromMessage = (msg) => {
203458
203468
  hasCSSChanges: false,
203459
203469
  manifest: state.manifest,
203460
203470
  pageModuleUrl,
203461
- primarySource: changedFile,
203471
+ primarySource: primaryFile,
203462
203472
  serverDuration,
203463
203473
  sourceFiles: reactFiles
203464
203474
  },
@@ -205215,5 +205225,5 @@ export {
205215
205225
  ANGULAR_INIT_TIMEOUT_MS
205216
205226
  };
205217
205227
 
205218
- //# debugId=FE8A25A0C4FF63AA64756E2164756E21
205228
+ //# debugId=6CF4E1E884434C2664756E2164756E21
205219
205229
  //# sourceMappingURL=index.js.map