@absolutejs/absolute 0.19.0-beta.156 → 0.19.0-beta.158

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
@@ -171819,9 +171819,12 @@ var isDev, extractBuildError = (logs, pass, label, frameworkNames, isIncremental
171819
171819
  const varIdx = content.indexOf(`var ${firstUseName} =`);
171820
171820
  if (varIdx > 0) {
171821
171821
  const before = content.slice(0, varIdx);
171822
- const commentMatch = before.match(/\/\/\s*(src\/[^\n]*\.js)\s*\n[^/]*$/);
171823
- if (commentMatch?.[1]) {
171824
- const srcPath = resolve11(projectRoot, commentMatch[1].replace("/client/", "/").replace(/\.js$/, ".ts"));
171822
+ const allComments = [
171823
+ ...before.matchAll(/\/\/\s*(src\/[^\n]*\.js)\s*\n/g)
171824
+ ];
171825
+ const last = allComments[allComments.length - 1];
171826
+ if (last?.[1]) {
171827
+ const srcPath = resolve11(projectRoot, last[1].replace("/client/", "/").replace(/\.js$/, ".ts"));
171825
171828
  runtimeId = JSON.stringify(srcPath);
171826
171829
  }
171827
171830
  }
@@ -202832,6 +202835,7 @@ ${stubs}
202832
202835
  `var __hmr_cs = (globalThis.__HMR_COMPOSABLE_STATE__ ??= {});`,
202833
202836
  `var __hmr_mid = ${moduleId};`,
202834
202837
  `var __hmr_prev_refs = __hmr_cs[__hmr_mid];`,
202838
+ `console.log("[HMR-composable] module load", __hmr_mid, "prev:", __hmr_prev_refs ? Object.keys(__hmr_prev_refs) : "none");`,
202835
202839
  `var __hmr_idx = {};`,
202836
202840
  `__hmr_cs[__hmr_mid] = {};`,
202837
202841
  `function __hmr_wrap(name, fn) {`,
@@ -202847,6 +202851,7 @@ ${stubs}
202847
202851
  ` }`,
202848
202852
  ` }`,
202849
202853
  ` (__hmr_cs[__hmr_mid][name] ??= [])[idx] = refs;`,
202854
+ ` console.log("[HMR-composable] wrap called", name, "idx:", idx, "has prev:", !!(__hmr_prev_refs && __hmr_prev_refs[name] && __hmr_prev_refs[name][idx]), "snap keys:", Object.keys(refs));`,
202850
202855
  ` if (__hmr_prev_refs && __hmr_prev_refs[name] && __hmr_prev_refs[name][idx]) {`,
202851
202856
  ` var old = __hmr_prev_refs[name][idx];`,
202852
202857
  ` for (var k in old) {`,
@@ -205919,5 +205924,5 @@ export {
205919
205924
  ANGULAR_INIT_TIMEOUT_MS
205920
205925
  };
205921
205926
 
205922
- //# debugId=EF82615725380F1B64756E2164756E21
205927
+ //# debugId=3606855454865F1964756E2164756E21
205923
205928
  //# sourceMappingURL=index.js.map