@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.
@@ -204,7 +204,9 @@
204
204
  "Bash(npm version:*)",
205
205
  "Bash(npm publish:*)",
206
206
  "Bash(kill 852179)",
207
- "Bash(sed -i 's/\"\"\"\"@absolutejs\\\\/absolute\"\"\"\": \"\"\"\"0.19.0-beta.53\"\"\"\"/\"\"\"\"@absolutejs\\\\/absolute\"\"\"\": \"\"\"\"0.19.0-beta.54\"\"\"\"/' package.json)"
207
+ "Bash(sed -i 's/\"\"\"\"@absolutejs\\\\/absolute\"\"\"\": \"\"\"\"0.19.0-beta.53\"\"\"\"/\"\"\"\"@absolutejs\\\\/absolute\"\"\"\": \"\"\"\"0.19.0-beta.54\"\"\"\"/' package.json)",
208
+ "Bash(kill 853547)",
209
+ "Bash(sed -i 's/\"\"\"\"@absolutejs\\\\/absolute\"\"\"\": \"\"\"\"0.19.0-beta.54\"\"\"\"/\"\"\"\"@absolutejs\\\\/absolute\"\"\"\": \"\"\"\"0.19.0-beta.55\"\"\"\"/' package.json)"
208
210
  ]
209
211
  }
210
212
  }
package/dist/build.js CHANGED
@@ -203444,12 +203444,22 @@ var parseErrorLocationFromMessage = (msg) => {
203444
203444
  for (const file3 of reactFiles) {
203445
203445
  state.fileHashes.set(resolve20(file3), computeFileHash(file3));
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 file3 of reactFiles) {
203456
+ const { invalidateModule: invalidateModule2 } = await Promise.resolve().then(() => (init_moduleServer(), exports_moduleServer));
203457
+ invalidateModule2(file3);
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
  },
@@ -204827,5 +204837,5 @@ export {
204827
204837
  build
204828
204838
  };
204829
204839
 
204830
- //# debugId=83A1C4631B880B5E64756E2164756E21
204840
+ //# debugId=321C55B50387FC1364756E2164756E21
204831
204841
  //# sourceMappingURL=build.js.map