@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/build.js +9 -4
- package/dist/build.js.map +4 -4
- package/dist/index.js +9 -4
- package/dist/index.js.map +4 -4
- package/package.json +1 -1
package/dist/build.js
CHANGED
|
@@ -171740,9 +171740,12 @@ var isDev, extractBuildError = (logs, pass, label, frameworkNames, isIncremental
|
|
|
171740
171740
|
const varIdx = content.indexOf(`var ${firstUseName} =`);
|
|
171741
171741
|
if (varIdx > 0) {
|
|
171742
171742
|
const before = content.slice(0, varIdx);
|
|
171743
|
-
const
|
|
171744
|
-
|
|
171745
|
-
|
|
171743
|
+
const allComments = [
|
|
171744
|
+
...before.matchAll(/\/\/\s*(src\/[^\n]*\.js)\s*\n/g)
|
|
171745
|
+
];
|
|
171746
|
+
const last = allComments[allComments.length - 1];
|
|
171747
|
+
if (last?.[1]) {
|
|
171748
|
+
const srcPath = resolve10(projectRoot, last[1].replace("/client/", "/").replace(/\.js$/, ".ts"));
|
|
171746
171749
|
runtimeId = JSON.stringify(srcPath);
|
|
171747
171750
|
}
|
|
171748
171751
|
}
|
|
@@ -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) {`,
|
|
@@ -205257,5 +205262,5 @@ export {
|
|
|
205257
205262
|
build
|
|
205258
205263
|
};
|
|
205259
205264
|
|
|
205260
|
-
//# debugId=
|
|
205265
|
+
//# debugId=DFF2B99DE5479C8664756E2164756E21
|
|
205261
205266
|
//# sourceMappingURL=build.js.map
|