@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/index.js CHANGED
@@ -171703,6 +171703,34 @@ 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);
171715
+ if (hmr) {
171716
+ const urlPattern = /new\s+URL\(\s*["'](\.\.?\/[^"']+)["']\s*,\s*import\.meta\.url\s*\)/g;
171717
+ for (const outputPath of reactClientOutputPaths) {
171718
+ let content = readFileSync5(outputPath, "utf-8");
171719
+ let changed = false;
171720
+ content = content.replace(urlPattern, (_match, relPath) => {
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;
171729
+ });
171730
+ if (changed)
171731
+ writeFileSync3(outputPath, content);
171732
+ }
171733
+ }
171706
171734
  const nonReactClientLogs = nonReactClientResult?.logs ?? [];
171707
171735
  const nonReactClientOutputs = nonReactClientResult?.outputs ?? [];
171708
171736
  if (nonReactClientResult && !nonReactClientResult.success && nonReactClientLogs.length > 0) {
@@ -171733,15 +171761,6 @@ var isDev, extractBuildError = (logs, pass, label, frameworkNames, isIncremental
171733
171761
  if (vueCssResult && !vueCssResult.success && vueCssResult.logs.length > 0) {
171734
171762
  extractBuildError(vueCssResult.logs, "vue-css", "Vue CSS", frameworkNames, isIncremental, throwOnError);
171735
171763
  }
171736
- const frameworkDirs = [
171737
- reactDir,
171738
- svelteDir,
171739
- vueDir,
171740
- angularDir,
171741
- htmlDir,
171742
- htmxDir
171743
- ].filter((d) => Boolean(d));
171744
- const workerEntryPoints = await scanWorkerReferences(frameworkDirs);
171745
171764
  let workerOutputs = [];
171746
171765
  if (workerEntryPoints.length > 0) {
171747
171766
  const workerResult = await bunBuild6({
@@ -205695,5 +205714,5 @@ export {
205695
205714
  ANGULAR_INIT_TIMEOUT_MS
205696
205715
  };
205697
205716
 
205698
- //# debugId=494BD438A8E1A87C64756E2164756E21
205717
+ //# debugId=6A03AFE8ADE7AB8164756E2164756E21
205699
205718
  //# sourceMappingURL=index.js.map