@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/index.js CHANGED
@@ -171815,11 +171815,19 @@ var isDev, extractBuildError = (logs, pass, label, frameworkNames, isIncremental
171815
171815
  continue;
171816
171816
  let runtimeId = JSON.stringify(outputPath);
171817
171817
  const firstUseName = useNames[0];
171818
- const commentPattern = new RegExp(`\\/\\/\\s*(src\\/[^\\n]*\\.js)\\s*\\n[^]*?var\\s+${firstUseName}\\s*=`);
171819
- const srcMatch = commentPattern.exec(content);
171820
- if (srcMatch?.[1]) {
171821
- const srcPath = resolve11(projectRoot, srcMatch[1].replace("/client/", "/").replace(/\.js$/, ".ts"));
171822
- runtimeId = JSON.stringify(srcPath);
171818
+ if (firstUseName) {
171819
+ const varIdx = content.indexOf(`var ${firstUseName} =`);
171820
+ if (varIdx > 0) {
171821
+ const before = content.slice(0, varIdx);
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"));
171828
+ runtimeId = JSON.stringify(srcPath);
171829
+ }
171830
+ }
171823
171831
  }
171824
171832
  const runtime = [
171825
171833
  `var __hmr_cs=(globalThis.__HMR_COMPOSABLE_STATE__??={});`,
@@ -205914,5 +205922,5 @@ export {
205914
205922
  ANGULAR_INIT_TIMEOUT_MS
205915
205923
  };
205916
205924
 
205917
- //# debugId=429570434E220A2664756E2164756E21
205925
+ //# debugId=A3BB3F9FF16B6A4F64756E2164756E21
205918
205926
  //# sourceMappingURL=index.js.map