@absolutejs/absolute 0.19.0-beta.125 → 0.19.0-beta.127

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
@@ -171249,7 +171249,7 @@ import {
171249
171249
  rmSync,
171250
171250
  writeFileSync as writeFileSync3
171251
171251
  } from "fs";
171252
- import { basename as basename5, join as join13, relative as relative7, resolve as resolve11 } from "path";
171252
+ import { basename as basename5, dirname as dirname6, join as join13, relative as relative7, resolve as resolve11 } from "path";
171253
171253
  import { cwd, env as env2, exit } from "process";
171254
171254
  var {build: bunBuild6, Glob: Glob5 } = globalThis.Bun;
171255
171255
  var isDev, extractBuildError = (logs, pass, label, frameworkNames, isIncremental, throwOnError) => {
@@ -171750,7 +171750,7 @@ var isDev, extractBuildError = (logs, pass, label, frameworkNames, isIncremental
171750
171750
  minify: !isDev,
171751
171751
  naming: "[dir]/[name].[hash].[ext]",
171752
171752
  outdir: buildPath,
171753
- root: commonAncestor(workerEntryPoints),
171753
+ root: commonAncestor(workerEntryPoints.map((p) => dirname6(p))),
171754
171754
  target: "browser",
171755
171755
  throw: false
171756
171756
  });
@@ -172878,7 +172878,7 @@ var init_registerClientScript = __esm(() => {
172878
172878
 
172879
172879
  // src/angular/injectorPatch.ts
172880
172880
  import { readFileSync as readFileSync8, writeFileSync as writeFileSync4 } from "fs";
172881
- import { dirname as dirname6, join as join15 } from "path";
172881
+ import { dirname as dirname7, join as join15 } from "path";
172882
172882
  var applyInjectorPatch = (chunkPath, content) => {
172883
172883
  if (content.includes('Symbol.for("angular.currentInjector")')) {
172884
172884
  return;
@@ -172915,7 +172915,7 @@ var applyInjectorPatch = (chunkPath, content) => {
172915
172915
  writeFileSync4(chunkPath, patched, "utf-8");
172916
172916
  }, patchAngularInjectorSingleton = () => {
172917
172917
  try {
172918
- const coreDir = dirname6(__require.resolve("@angular/core/package.json"));
172918
+ const coreDir = dirname7(__require.resolve("@angular/core/package.json"));
172919
172919
  const chunkPath = join15(coreDir, "fesm2022", "_not_found-chunk.mjs");
172920
172920
  const content = readFileSync8(chunkPath, "utf-8");
172921
172921
  applyInjectorPatch(chunkPath, content);
@@ -202509,7 +202509,7 @@ __export(exports_moduleServer, {
202509
202509
  SRC_URL_PREFIX: () => SRC_URL_PREFIX
202510
202510
  });
202511
202511
  import { existsSync as existsSync13, readFileSync as readFileSync9, statSync } from "fs";
202512
- import { basename as basename7, dirname as dirname7, extname as extname3, resolve as resolve18, relative as relative8 } from "path";
202512
+ import { basename as basename7, dirname as dirname8, extname as extname3, resolve as resolve18, relative as relative8 } from "path";
202513
202513
  var SRC_PREFIX = "/@src/", jsTranspiler2, tsTranspiler2, tsxTranspiler, TRANSPILABLE, ALL_EXPORTS_RE, STRING_CONTENTS_RE, preserveTypeExports = (originalSource, transpiled, valueExports) => {
202514
202514
  const codeOnly = originalSource.replace(STRING_CONTENTS_RE, '""');
202515
202515
  const allExports = [];
@@ -202569,7 +202569,7 @@ ${stubs}
202569
202569
  };
202570
202570
  result = result.replace(/^((?:import\s+.+?\s+from|export\s+.+?\s+from|import)\s*["'])([^"'./][^"']*)(["'])/gm, stubReplace);
202571
202571
  result = result.replace(/(import\s*\(\s*["'])([^"'./][^"']*)(["']\s*\))/g, stubReplace);
202572
- const fileDir = dirname7(filePath);
202572
+ const fileDir = dirname8(filePath);
202573
202573
  result = result.replace(/(from\s*["'])(\.\.?\/[^"']+)(["'])/g, (_match, prefix, relPath, suffix) => {
202574
202574
  const absPath = resolve18(fileDir, relPath);
202575
202575
  const rel = relative8(projectRoot, absPath);
@@ -202641,7 +202641,7 @@ ${stubs}
202641
202641
  result = result.replace(/new\s+URL\(\s*["'](\.\.?\/[^"']+)["']\s*,\s*import\.meta\.url\s*\)/g, (_match, relPath) => {
202642
202642
  const absPath = resolve18(fileDir, relPath);
202643
202643
  const rel = relative8(projectRoot, absPath);
202644
- return `new URL('/${srcUrl(rel, projectRoot)}', import.meta.url)`;
202644
+ return `new URL('${srcUrl(rel, projectRoot)}', import.meta.url)`;
202645
202645
  });
202646
202646
  result = result.replace(/import\.meta\.resolve\(\s*["'](\.\.?\/[^"']+)["']\s*\)/g, (_match, relPath) => {
202647
202647
  const absPath = resolve18(fileDir, relPath);
@@ -205695,5 +205695,5 @@ export {
205695
205695
  ANGULAR_INIT_TIMEOUT_MS
205696
205696
  };
205697
205697
 
205698
- //# debugId=FAEDECCCFD8E76FD64756E2164756E21
205698
+ //# debugId=494BD438A8E1A87C64756E2164756E21
205699
205699
  //# sourceMappingURL=index.js.map