@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/build.js CHANGED
@@ -171624,16 +171624,29 @@ var isDev, extractBuildError = (logs, pass, label, frameworkNames, isIncremental
171624
171624
  if (hmr && reactClientOutputPaths.length > 0) {
171625
171625
  await patchRefreshGlobals(reactClientOutputPaths);
171626
171626
  }
171627
+ const frameworkDirs = [
171628
+ reactDir,
171629
+ svelteDir,
171630
+ vueDir,
171631
+ angularDir,
171632
+ htmlDir,
171633
+ htmxDir
171634
+ ].filter((d) => Boolean(d));
171635
+ const workerEntryPoints = await scanWorkerReferences(frameworkDirs);
171627
171636
  if (hmr) {
171628
171637
  const urlPattern = /new\s+URL\(\s*["'](\.\.?\/[^"']+)["']\s*,\s*import\.meta\.url\s*\)/g;
171629
171638
  for (const outputPath of reactClientOutputPaths) {
171630
171639
  let content = readFileSync5(outputPath, "utf-8");
171631
171640
  let changed = false;
171632
171641
  content = content.replace(urlPattern, (_match, relPath) => {
171633
- const absPath = resolve10(dirname6(outputPath), relPath);
171634
- const rel = relative7(projectRoot, absPath);
171635
- changed = true;
171636
- return `new URL('/@src/${rel.replace(/\\/g, "/")}', import.meta.url)`;
171642
+ const targetName = basename5(relPath);
171643
+ const workerSrc = workerEntryPoints.find((wp) => basename5(wp) === targetName);
171644
+ if (workerSrc) {
171645
+ const rel = relative7(projectRoot, workerSrc);
171646
+ changed = true;
171647
+ return `new URL('/@src/${rel.replace(/\\/g, "/")}', import.meta.url)`;
171648
+ }
171649
+ return _match;
171637
171650
  });
171638
171651
  if (changed)
171639
171652
  writeFileSync3(outputPath, content);
@@ -171669,15 +171682,6 @@ var isDev, extractBuildError = (logs, pass, label, frameworkNames, isIncremental
171669
171682
  if (vueCssResult && !vueCssResult.success && vueCssResult.logs.length > 0) {
171670
171683
  extractBuildError(vueCssResult.logs, "vue-css", "Vue CSS", frameworkNames, isIncremental, throwOnError);
171671
171684
  }
171672
- const frameworkDirs = [
171673
- reactDir,
171674
- svelteDir,
171675
- vueDir,
171676
- angularDir,
171677
- htmlDir,
171678
- htmxDir
171679
- ].filter((d) => Boolean(d));
171680
- const workerEntryPoints = await scanWorkerReferences(frameworkDirs);
171681
171685
  let workerOutputs = [];
171682
171686
  if (workerEntryPoints.length > 0) {
171683
171687
  const workerResult = await bunBuild6({
@@ -205048,5 +205052,5 @@ export {
205048
205052
  build
205049
205053
  };
205050
205054
 
205051
- //# debugId=CC21D3972768AF1864756E2164756E21
205055
+ //# debugId=C556D703017A300564756E2164756E21
205052
205056
  //# sourceMappingURL=build.js.map