@absolutejs/absolute 0.19.0-beta.127 → 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,6 +171624,34 @@ 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);
171636
+ if (hmr) {
171637
+ const urlPattern = /new\s+URL\(\s*["'](\.\.?\/[^"']+)["']\s*,\s*import\.meta\.url\s*\)/g;
171638
+ for (const outputPath of reactClientOutputPaths) {
171639
+ let content = readFileSync5(outputPath, "utf-8");
171640
+ let changed = false;
171641
+ content = content.replace(urlPattern, (_match, relPath) => {
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;
171650
+ });
171651
+ if (changed)
171652
+ writeFileSync3(outputPath, content);
171653
+ }
171654
+ }
171627
171655
  const nonReactClientLogs = nonReactClientResult?.logs ?? [];
171628
171656
  const nonReactClientOutputs = nonReactClientResult?.outputs ?? [];
171629
171657
  if (nonReactClientResult && !nonReactClientResult.success && nonReactClientLogs.length > 0) {
@@ -171654,15 +171682,6 @@ var isDev, extractBuildError = (logs, pass, label, frameworkNames, isIncremental
171654
171682
  if (vueCssResult && !vueCssResult.success && vueCssResult.logs.length > 0) {
171655
171683
  extractBuildError(vueCssResult.logs, "vue-css", "Vue CSS", frameworkNames, isIncremental, throwOnError);
171656
171684
  }
171657
- const frameworkDirs = [
171658
- reactDir,
171659
- svelteDir,
171660
- vueDir,
171661
- angularDir,
171662
- htmlDir,
171663
- htmxDir
171664
- ].filter((d) => Boolean(d));
171665
- const workerEntryPoints = await scanWorkerReferences(frameworkDirs);
171666
171685
  let workerOutputs = [];
171667
171686
  if (workerEntryPoints.length > 0) {
171668
171687
  const workerResult = await bunBuild6({
@@ -205033,5 +205052,5 @@ export {
205033
205052
  build
205034
205053
  };
205035
205054
 
205036
- //# debugId=E23EB0E83119806C64756E2164756E21
205055
+ //# debugId=C556D703017A300564756E2164756E21
205037
205056
  //# sourceMappingURL=build.js.map