@absolutejs/absolute 0.19.0-beta.59 → 0.19.0-beta.60

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.
@@ -212,7 +212,9 @@
212
212
  "Bash(kill 862855)",
213
213
  "Bash(sed -i 's/\"\"\"\"@absolutejs\\\\/absolute\"\"\"\": \"\"\"\"0.19.0-beta.56\"\"\"\"/\"\"\"\"@absolutejs\\\\/absolute\"\"\"\": \"\"\"\"0.19.0-beta.57\"\"\"\"/' package.json)",
214
214
  "Bash(kill 868777)",
215
- "Bash(sed -i 's/\"\"\"\"@absolutejs\\\\/absolute\"\"\"\": \"\"\"\"0.19.0-beta.57\"\"\"\"/\"\"\"\"@absolutejs\\\\/absolute\"\"\"\": \"\"\"\"0.19.0-beta.58\"\"\"\"/' package.json)"
215
+ "Bash(sed -i 's/\"\"\"\"@absolutejs\\\\/absolute\"\"\"\": \"\"\"\"0.19.0-beta.57\"\"\"\"/\"\"\"\"@absolutejs\\\\/absolute\"\"\"\": \"\"\"\"0.19.0-beta.58\"\"\"\"/' package.json)",
216
+ "Bash(kill 870841)",
217
+ "Bash(sed -i 's/\"\"\"\"@absolutejs\\\\/absolute\"\"\"\": \"\"\"\"0.19.0-beta.58\"\"\"\"/\"\"\"\"@absolutejs\\\\/absolute\"\"\"\": \"\"\"\"0.19.0-beta.59\"\"\"\"/' package.json)"
216
218
  ]
217
219
  }
218
220
  }
package/dist/build.js CHANGED
@@ -203448,7 +203448,9 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, parseError
203448
203448
  for (const file3 of reactFiles) {
203449
203449
  invalidateModule2(file3);
203450
203450
  }
203451
- const pageModuleUrl = await getReactModuleUrl(primaryFile);
203451
+ const isComponentFile = primaryFile.endsWith(".tsx") || primaryFile.endsWith(".jsx");
203452
+ const broadcastFile = isComponentFile ? primaryFile : reactFiles.find((f) => f.replace(/\\/g, "/").includes("/pages/") && (f.endsWith(".tsx") || f.endsWith(".jsx"))) ?? primaryFile;
203453
+ const pageModuleUrl = await getReactModuleUrl(broadcastFile);
203452
203454
  if (pageModuleUrl) {
203453
203455
  const serverDuration = Date.now() - startTime;
203454
203456
  state.lastHmrPath = relative8(process.cwd(), primaryFile).replace(/\\/g, "/");
@@ -204830,5 +204832,5 @@ export {
204830
204832
  build
204831
204833
  };
204832
204834
 
204833
- //# debugId=CBCA8C077DABB15E64756E2164756E21
204835
+ //# debugId=9611D389F3CCA78764756E2164756E21
204834
204836
  //# sourceMappingURL=build.js.map