@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/index.js CHANGED
@@ -171815,11 +171815,16 @@ 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 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"));
171825
+ runtimeId = JSON.stringify(srcPath);
171826
+ }
171827
+ }
171823
171828
  }
171824
171829
  const runtime = [
171825
171830
  `var __hmr_cs=(globalThis.__HMR_COMPOSABLE_STATE__??={});`,
@@ -205914,5 +205919,5 @@ export {
205914
205919
  ANGULAR_INIT_TIMEOUT_MS
205915
205920
  };
205916
205921
 
205917
- //# debugId=429570434E220A2664756E2164756E21
205922
+ //# debugId=EF82615725380F1B64756E2164756E21
205918
205923
  //# sourceMappingURL=index.js.map