@absolutejs/absolute 0.19.0-beta.132 → 0.19.0-beta.133

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
@@ -171728,25 +171728,6 @@ var isDev, extractBuildError = (logs, pass, label, frameworkNames, isIncremental
171728
171728
  htmxDir
171729
171729
  ].filter((d) => Boolean(d));
171730
171730
  const workerEntryPoints = await scanWorkerReferences(frameworkDirs);
171731
- if (hmr) {
171732
- const urlPattern = /new\s+URL\(\s*["'](\.\.?\/[^"']+)["']\s*,\s*import\.meta\.url\s*\)/g;
171733
- for (const outputPath of reactClientOutputPaths) {
171734
- let content = readFileSync5(outputPath, "utf-8");
171735
- let changed = false;
171736
- content = content.replace(urlPattern, (_match, relPath) => {
171737
- const targetName = basename5(relPath);
171738
- const workerSrc = workerEntryPoints.find((wp) => basename5(wp) === targetName);
171739
- if (workerSrc) {
171740
- const rel = relative7(projectRoot, workerSrc);
171741
- changed = true;
171742
- return `new URL('/@src/${rel.replace(/\\/g, "/")}', import.meta.url)`;
171743
- }
171744
- return _match;
171745
- });
171746
- if (changed)
171747
- writeFileSync3(outputPath, content);
171748
- }
171749
- }
171750
171731
  const nonReactClientLogs = nonReactClientResult?.logs ?? [];
171751
171732
  const nonReactClientOutputs = nonReactClientResult?.outputs ?? [];
171752
171733
  if (nonReactClientResult && !nonReactClientResult.success && nonReactClientLogs.length > 0) {
@@ -171777,6 +171758,29 @@ var isDev, extractBuildError = (logs, pass, label, frameworkNames, isIncremental
171777
171758
  if (vueCssResult && !vueCssResult.success && vueCssResult.logs.length > 0) {
171778
171759
  extractBuildError(vueCssResult.logs, "vue-css", "Vue CSS", frameworkNames, isIncremental, throwOnError);
171779
171760
  }
171761
+ if (hmr && workerEntryPoints.length > 0) {
171762
+ const urlPattern = /new\s+URL\(\s*["'](\.\.?\/[^"']+)["']\s*,\s*import\.meta\.url\s*\)/g;
171763
+ const allClientOutputPaths = [
171764
+ ...reactClientOutputPaths,
171765
+ ...nonReactClientOutputs.map((a) => a.path)
171766
+ ];
171767
+ for (const outputPath of allClientOutputPaths) {
171768
+ let content = readFileSync5(outputPath, "utf-8");
171769
+ let changed = false;
171770
+ content = content.replace(urlPattern, (_match, relPath) => {
171771
+ const targetName = basename5(relPath);
171772
+ const workerSrc = workerEntryPoints.find((wp) => basename5(wp) === targetName);
171773
+ if (workerSrc) {
171774
+ const rel = relative7(projectRoot, workerSrc);
171775
+ changed = true;
171776
+ return `new URL('/@src/${rel.replace(/\\/g, "/")}', import.meta.url)`;
171777
+ }
171778
+ return _match;
171779
+ });
171780
+ if (changed)
171781
+ writeFileSync3(outputPath, content);
171782
+ }
171783
+ }
171780
171784
  let workerOutputs = [];
171781
171785
  if (workerEntryPoints.length > 0) {
171782
171786
  const workerResult = await bunBuild6({
@@ -205731,5 +205735,5 @@ export {
205731
205735
  ANGULAR_INIT_TIMEOUT_MS
205732
205736
  };
205733
205737
 
205734
- //# debugId=9ACCBA59801C8BAE64756E2164756E21
205738
+ //# debugId=361691875C3A51BD64756E2164756E21
205735
205739
  //# sourceMappingURL=index.js.map