Skip to content

Commit 3faa3b4

Browse files
committed
refactor(@angular/build): provide private factory API for internal compilation infrastructure
The `createAngularCompilation` factory function is now available from the `private` entry point for the `@angular/build` package. All items exposed from this entry point are not subject to SemVer guarantees and may change between releases.
1 parent 0ee847c commit 3faa3b4

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

packages/angular/build/src/private.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ export function createCompilerPlugin(
5858
);
5959
}
6060

61+
export type { AngularCompilation } from './tools/angular/compilation';
62+
export { createAngularCompilation };
63+
6164
// Utilities
6265
export * from './utils/bundle-calculator';
6366
export { checkPort } from './utils/check-port';

packages/angular/build/src/tools/angular/compilation/factory.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@ import type { AngularCompilation } from './angular-compilation';
2020
export async function createAngularCompilation(
2121
jit: boolean,
2222
browserOnlyBuild: boolean,
23+
parallel: boolean = useParallelTs,
2324
): Promise<AngularCompilation> {
24-
if (useParallelTs) {
25+
if (parallel) {
2526
const { ParallelCompilation } = await import('./parallel-compilation');
2627

2728
return new ParallelCompilation(jit, browserOnlyBuild);

0 commit comments

Comments
 (0)