@absolutejs/absolute 0.19.0-beta.980 → 0.19.0-beta.981
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 +30 -15
- package/dist/angular/index.js.map +3 -3
- package/dist/angular/server.js +30 -15
- package/dist/angular/server.js.map +3 -3
- package/dist/build.js +69 -20
- package/dist/build.js.map +4 -4
- package/dist/index.js +69 -20
- package/dist/index.js.map +4 -4
- package/dist/src/build/compileAngular.d.ts +19 -1
- package/package.json +1 -1
|
@@ -8,7 +8,25 @@ export declare const invalidateAngularJitCache: (filePath: string) => void;
|
|
|
8
8
|
* Recursively transpiles all local imports so Bun's bundler can resolve them.
|
|
9
9
|
* ~50-100ms for a tree of ~10 files vs ~500-700ms for AOT. */
|
|
10
10
|
export declare const compileAngularFileJIT: (inputPath: string, outDir: string, rootDir?: string, stylePreprocessors?: StylePreprocessorConfig, cacheBuster?: string) => Promise<string[]>;
|
|
11
|
-
|
|
11
|
+
/** Build-time providers info threaded down from `runAngularHandlerScan`.
|
|
12
|
+
* When present, `compileAngular` injects an `export const providers = [...]`
|
|
13
|
+
* declaration directly into each page's compiled server output instead
|
|
14
|
+
* of relying on a sibling `.providers.ts` file. Injecting in-place
|
|
15
|
+
* avoids the circular ESM dependency that arises when a router page
|
|
16
|
+
* exports `routes` (`.providers.ts` would import `routes` from the
|
|
17
|
+
* page, the page server output would re-export `providers` from
|
|
18
|
+
* `.providers.ts` — circular; `provideRouter(undefined, ...)` then
|
|
19
|
+
* throws NG04014 at SSR bootstrap). */
|
|
20
|
+
export type AngularProvidersInjection = {
|
|
21
|
+
/** Source `.ts` path of the user's `angular.providers` binding. */
|
|
22
|
+
appProvidersSource: string;
|
|
23
|
+
/** Source `.ts` path → page metadata for every page the scanner saw. */
|
|
24
|
+
pagesByFile: Map<string, {
|
|
25
|
+
hasRoutes: boolean;
|
|
26
|
+
basePath: string | null;
|
|
27
|
+
}>;
|
|
28
|
+
};
|
|
29
|
+
export declare const compileAngular: (entryPoints: string[], outRoot: string, hmr?: boolean, stylePreprocessors?: StylePreprocessorConfig, providersInjection?: AngularProvidersInjection) => Promise<{
|
|
12
30
|
clientPaths: string[];
|
|
13
31
|
serverPaths: string[];
|
|
14
32
|
allIndexesUnchanged?: undefined;
|
package/package.json
CHANGED