@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/angular/components/core/streamingSlotRegistrar.js +1 -1
- package/dist/angular/components/core/streamingSlotRegistry.js +2 -2
- package/dist/angular/index.js +11 -2
- package/dist/angular/index.js.map +3 -3
- package/dist/angular/server.js +11 -2
- package/dist/angular/server.js.map +3 -3
- package/dist/build.js +11 -2
- package/dist/build.js.map +3 -3
- package/dist/index.js +11 -2
- package/dist/index.js.map +3 -3
- package/dist/src/build/compileAngular.d.ts +0 -5
- package/dist/vue/index.js +4 -1
- package/dist/vue/index.js.map +3 -3
- package/dist/vue/server.js +4 -1
- package/dist/vue/server.js.map +3 -3
- package/package.json +2 -1
package/dist/index.js
CHANGED
|
@@ -26696,6 +26696,13 @@ ${fields}
|
|
|
26696
26696
|
}
|
|
26697
26697
|
result += source.slice(lastIndex);
|
|
26698
26698
|
return result;
|
|
26699
|
+
}, PROVIDERS_INJECTION_BLOCK_RE, readPreservedInjection = async (targetPath) => {
|
|
26700
|
+
try {
|
|
26701
|
+
const existing = await fs5.readFile(targetPath, "utf-8");
|
|
26702
|
+
return PROVIDERS_INJECTION_BLOCK_RE.exec(existing)?.[0] ?? "";
|
|
26703
|
+
} catch {
|
|
26704
|
+
return "";
|
|
26705
|
+
}
|
|
26699
26706
|
}, compileAngularFileJIT = async (inputPath, outDir, rootDir, stylePreprocessors, cacheBuster) => {
|
|
26700
26707
|
const entryPath = resolve25(inputPath);
|
|
26701
26708
|
const allOutputs = [];
|
|
@@ -26853,8 +26860,9 @@ ${fields}
|
|
|
26853
26860
|
const shouldWriteFile = cacheBuster && isEntry ? true : jitContentCache.get(cacheKey2) !== contentHash || !existsSync26(targetPath);
|
|
26854
26861
|
if (shouldWriteFile) {
|
|
26855
26862
|
const processedContent = transpileAndRewrite(sourceCode, relativeDir, actualPath, importRewrites);
|
|
26863
|
+
const preservedInjection = await readPreservedInjection(targetPath);
|
|
26856
26864
|
await fs5.mkdir(targetDir, { recursive: true });
|
|
26857
|
-
await fs5.writeFile(targetPath, processedContent, "utf-8");
|
|
26865
|
+
await fs5.writeFile(targetPath, processedContent + preservedInjection, "utf-8");
|
|
26858
26866
|
jitContentCache.set(cacheKey2, contentHash);
|
|
26859
26867
|
}
|
|
26860
26868
|
allOutputs.push(targetPath);
|
|
@@ -27240,6 +27248,7 @@ var init_compileAngular = __esm(() => {
|
|
|
27240
27248
|
hmrClientPath5 = join34(devClientDir4, "hmrClient.ts").replace(/\\/g, "/");
|
|
27241
27249
|
jitContentCache = new Map;
|
|
27242
27250
|
wrapperOutputCache = new Map;
|
|
27251
|
+
PROVIDERS_INJECTION_BLOCK_RE = /\n\/\* __ABS_PROVIDERS_INJECTION_START \*\/[\s\S]*?\/\* __ABS_PROVIDERS_INJECTION_END \*\/\n?/;
|
|
27243
27252
|
});
|
|
27244
27253
|
|
|
27245
27254
|
// src/dev/angular/hmrImportGenerator.ts
|
|
@@ -48317,5 +48326,5 @@ export {
|
|
|
48317
48326
|
ANGULAR_INIT_TIMEOUT_MS
|
|
48318
48327
|
};
|
|
48319
48328
|
|
|
48320
|
-
//# debugId=
|
|
48329
|
+
//# debugId=76B5B89ABE03384164756E2164756E21
|
|
48321
48330
|
//# sourceMappingURL=index.js.map
|