@absolutejs/absolute 0.19.0-beta.1103 → 0.19.0-beta.1104

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
@@ -16602,6 +16602,13 @@ ${fields}
16602
16602
  }
16603
16603
  result += source.slice(lastIndex);
16604
16604
  return result;
16605
+ }, PROVIDERS_INJECTION_BLOCK_RE, readPreservedInjection = async (targetPath) => {
16606
+ try {
16607
+ const existing = await fs5.readFile(targetPath, "utf-8");
16608
+ return PROVIDERS_INJECTION_BLOCK_RE.exec(existing)?.[0] ?? "";
16609
+ } catch {
16610
+ return "";
16611
+ }
16605
16612
  }, compileAngularFileJIT = async (inputPath, outDir, rootDir, stylePreprocessors, cacheBuster) => {
16606
16613
  const entryPath = resolve22(inputPath);
16607
16614
  const allOutputs = [];
@@ -16759,8 +16766,9 @@ ${fields}
16759
16766
  const shouldWriteFile = cacheBuster && isEntry ? true : jitContentCache.get(cacheKey2) !== contentHash || !existsSync23(targetPath);
16760
16767
  if (shouldWriteFile) {
16761
16768
  const processedContent = transpileAndRewrite(sourceCode, relativeDir, actualPath, importRewrites);
16769
+ const preservedInjection = await readPreservedInjection(targetPath);
16762
16770
  await fs5.mkdir(targetDir, { recursive: true });
16763
- await fs5.writeFile(targetPath, processedContent, "utf-8");
16771
+ await fs5.writeFile(targetPath, processedContent + preservedInjection, "utf-8");
16764
16772
  jitContentCache.set(cacheKey2, contentHash);
16765
16773
  }
16766
16774
  allOutputs.push(targetPath);
@@ -17146,6 +17154,7 @@ var init_compileAngular = __esm(() => {
17146
17154
  hmrClientPath5 = join30(devClientDir4, "hmrClient.ts").replace(/\\/g, "/");
17147
17155
  jitContentCache = new Map;
17148
17156
  wrapperOutputCache = new Map;
17157
+ PROVIDERS_INJECTION_BLOCK_RE = /\n\/\* __ABS_PROVIDERS_INJECTION_START \*\/[\s\S]*?\/\* __ABS_PROVIDERS_INJECTION_END \*\/\n?/;
17149
17158
  });
17150
17159
 
17151
17160
  // src/dev/angular/hmrImportGenerator.ts
@@ -29532,5 +29541,5 @@ export {
29532
29541
  build
29533
29542
  };
29534
29543
 
29535
- //# debugId=D5BC49AA2D61155364756E2164756E21
29544
+ //# debugId=7C5E67F852AE207064756E2164756E21
29536
29545
  //# sourceMappingURL=build.js.map