@absolutejs/absolute 0.19.0-beta.155 → 0.19.0-beta.157

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
@@ -171736,11 +171736,19 @@ var isDev, extractBuildError = (logs, pass, label, frameworkNames, isIncremental
171736
171736
  continue;
171737
171737
  let runtimeId = JSON.stringify(outputPath);
171738
171738
  const firstUseName = useNames[0];
171739
- const commentPattern = new RegExp(`\\/\\/\\s*(src\\/[^\\n]*\\.js)\\s*\\n[^]*?var\\s+${firstUseName}\\s*=`);
171740
- const srcMatch = commentPattern.exec(content);
171741
- if (srcMatch?.[1]) {
171742
- const srcPath = resolve10(projectRoot, srcMatch[1].replace("/client/", "/").replace(/\.js$/, ".ts"));
171743
- runtimeId = JSON.stringify(srcPath);
171739
+ if (firstUseName) {
171740
+ const varIdx = content.indexOf(`var ${firstUseName} =`);
171741
+ if (varIdx > 0) {
171742
+ const before = content.slice(0, varIdx);
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"));
171749
+ runtimeId = JSON.stringify(srcPath);
171750
+ }
171751
+ }
171744
171752
  }
171745
171753
  const runtime = [
171746
171754
  `var __hmr_cs=(globalThis.__HMR_COMPOSABLE_STATE__??={});`,
@@ -205252,5 +205260,5 @@ export {
205252
205260
  build
205253
205261
  };
205254
205262
 
205255
- //# debugId=FD07AFEFC0D2D2FA64756E2164756E21
205263
+ //# debugId=895358B52BA6BBCD64756E2164756E21
205256
205264
  //# sourceMappingURL=build.js.map