@absolutejs/absolute 0.19.0-beta.15 → 0.19.0-beta.17

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/build.js CHANGED
@@ -172396,12 +172396,18 @@ var trySendMessage = (client, messageStr) => {
172396
172396
  state.activeFrameworks.add(data.framework);
172397
172397
  }
172398
172398
  break;
172399
- case "hmr-timing":
172400
- if (data.duration !== undefined) {
172399
+ case "hmr-timing": {
172400
+ const timing = data;
172401
+ if (timing.duration !== undefined) {
172401
172402
  const lastPath = state.lastHmrPath ?? "";
172402
- logHmrUpdate(lastPath, state.lastHmrFramework, data.duration);
172403
+ const breakdown = timing.serverMs !== undefined ? ` (server ${timing.serverMs}ms + fetch ${timing.fetchMs ?? 0}ms + refresh ${timing.refreshMs ?? 0}ms)` : "";
172404
+ logHmrUpdate(lastPath, state.lastHmrFramework, timing.duration);
172405
+ if (breakdown) {
172406
+ console.log(` ${breakdown}`);
172407
+ }
172403
172408
  }
172404
172409
  break;
172410
+ }
172405
172411
  }
172406
172412
  }, handleHMRMessage = (state, client, message) => {
172407
172413
  try {
@@ -202800,6 +202806,7 @@ var parseErrorLocationFromMessage = (msg) => {
202800
202806
  if (changedFile) {
202801
202807
  const pageModuleUrl = await getReactModuleUrl(changedFile);
202802
202808
  if (pageModuleUrl) {
202809
+ const serverDuration = Date.now() - startTime;
202803
202810
  state.lastHmrPath = changedFile;
202804
202811
  state.lastHmrFramework = "react";
202805
202812
  broadcastToClients(state, {
@@ -202810,8 +202817,8 @@ var parseErrorLocationFromMessage = (msg) => {
202810
202817
  manifest: state.manifest,
202811
202818
  pageModuleUrl,
202812
202819
  primarySource: changedFile,
202813
- sourceFiles: reactFiles,
202814
- startTime
202820
+ serverDuration,
202821
+ sourceFiles: reactFiles
202815
202822
  },
202816
202823
  type: "react-update"
202817
202824
  });
@@ -203893,5 +203900,5 @@ export {
203893
203900
  build
203894
203901
  };
203895
203902
 
203896
- //# debugId=F20E7CBA301C722A64756E2164756E21
203903
+ //# debugId=265BEB7B51A31F4E64756E2164756E21
203897
203904
  //# sourceMappingURL=build.js.map