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

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,16 @@ 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 commentMatch = before.match(/\/\/\s*(src\/[^\n]*\.js)\s*\n[^/]*$/);
171744
+ if (commentMatch?.[1]) {
171745
+ const srcPath = resolve10(projectRoot, commentMatch[1].replace("/client/", "/").replace(/\.js$/, ".ts"));
171746
+ runtimeId = JSON.stringify(srcPath);
171747
+ }
171748
+ }
171744
171749
  }
171745
171750
  const runtime = [
171746
171751
  `var __hmr_cs=(globalThis.__HMR_COMPOSABLE_STATE__??={});`,
@@ -205252,5 +205257,5 @@ export {
205252
205257
  build
205253
205258
  };
205254
205259
 
205255
- //# debugId=FD07AFEFC0D2D2FA64756E2164756E21
205260
+ //# debugId=D8F0DB0810AF6A7564756E2164756E21
205256
205261
  //# sourceMappingURL=build.js.map