@absolutejs/absolute 0.19.0-beta.128 → 0.19.0-beta.129

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
@@ -171703,16 +171703,29 @@ var isDev, extractBuildError = (logs, pass, label, frameworkNames, isIncremental
171703
171703
  if (hmr && reactClientOutputPaths.length > 0) {
171704
171704
  await patchRefreshGlobals(reactClientOutputPaths);
171705
171705
  }
171706
+ const frameworkDirs = [
171707
+ reactDir,
171708
+ svelteDir,
171709
+ vueDir,
171710
+ angularDir,
171711
+ htmlDir,
171712
+ htmxDir
171713
+ ].filter((d) => Boolean(d));
171714
+ const workerEntryPoints = await scanWorkerReferences(frameworkDirs);
171706
171715
  if (hmr) {
171707
171716
  const urlPattern = /new\s+URL\(\s*["'](\.\.?\/[^"']+)["']\s*,\s*import\.meta\.url\s*\)/g;
171708
171717
  for (const outputPath of reactClientOutputPaths) {
171709
171718
  let content = readFileSync5(outputPath, "utf-8");
171710
171719
  let changed = false;
171711
171720
  content = content.replace(urlPattern, (_match, relPath) => {
171712
- const absPath = resolve11(dirname6(outputPath), relPath);
171713
- const rel = relative7(projectRoot, absPath);
171714
- changed = true;
171715
- return `new URL('/@src/${rel.replace(/\\/g, "/")}', import.meta.url)`;
171721
+ const targetName = basename5(relPath);
171722
+ const workerSrc = workerEntryPoints.find((wp) => basename5(wp) === targetName);
171723
+ if (workerSrc) {
171724
+ const rel = relative7(projectRoot, workerSrc);
171725
+ changed = true;
171726
+ return `new URL('/@src/${rel.replace(/\\/g, "/")}', import.meta.url)`;
171727
+ }
171728
+ return _match;
171716
171729
  });
171717
171730
  if (changed)
171718
171731
  writeFileSync3(outputPath, content);
@@ -171748,15 +171761,6 @@ var isDev, extractBuildError = (logs, pass, label, frameworkNames, isIncremental
171748
171761
  if (vueCssResult && !vueCssResult.success && vueCssResult.logs.length > 0) {
171749
171762
  extractBuildError(vueCssResult.logs, "vue-css", "Vue CSS", frameworkNames, isIncremental, throwOnError);
171750
171763
  }
171751
- const frameworkDirs = [
171752
- reactDir,
171753
- svelteDir,
171754
- vueDir,
171755
- angularDir,
171756
- htmlDir,
171757
- htmxDir
171758
- ].filter((d) => Boolean(d));
171759
- const workerEntryPoints = await scanWorkerReferences(frameworkDirs);
171760
171764
  let workerOutputs = [];
171761
171765
  if (workerEntryPoints.length > 0) {
171762
171766
  const workerResult = await bunBuild6({
@@ -205710,5 +205714,5 @@ export {
205710
205714
  ANGULAR_INIT_TIMEOUT_MS
205711
205715
  };
205712
205716
 
205713
- //# debugId=A8CC6D5890C6D9A264756E2164756E21
205717
+ //# debugId=6A03AFE8ADE7AB8164756E2164756E21
205714
205718
  //# sourceMappingURL=index.js.map