Skip to content

Commit 37563fc

Browse files
atscottcrisbeto
authored andcommitted
refactor(compiler-cli): switch hybrid preprocessor to TypeScript-free private entry point
Switch hmr.ts and output_ast_printer.ts in the hybrid preprocessor to import from @angular/compiler-cli/private/hybrid_preprocessor instead of @angular/compiler-cli/private/hybrid_analysis.
1 parent 92c7e87 commit 37563fc

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

‎packages/compiler-cli/preprocessor/BUILD.bazel‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ ts_project(
3030
"//packages/compiler",
3131
"//packages/compiler-cli",
3232
"//packages/compiler-cli/preprocessor/ng-analyze:wasm",
33+
"//packages/compiler-cli/private:hybrid_preprocessor",
3334
],
3435
)
3536

‎packages/compiler-cli/preprocessor/src/hmr.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {
1212
PotentialTopLevelReadsVisitor,
1313
type HmrCompiledOutput,
1414
type HmrReadResolver,
15-
} from '@angular/compiler-cli/private/hybrid_analysis';
15+
} from '@angular/compiler-cli/private/hybrid_preprocessor';
1616
import {ExpressionPrinter, RawSource} from './output_ast_printer.js';
1717
import * as nga from './types.js';
1818

‎packages/compiler-cli/preprocessor/src/output_ast_printer.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {
1212
EmitterVisitorContext,
1313
ParseSourceSpan,
1414
} from '@angular/compiler';
15-
import {validateAndRewriteCoreSymbol} from '@angular/compiler-cli/private/hybrid_analysis';
15+
import {validateAndRewriteCoreSymbol} from '@angular/compiler-cli/private/hybrid_preprocessor';
1616
import type {SpanMetadata} from './types.js';
1717

1818
/** A location in a source file that some printed text originates from. */

0 commit comments

Comments
 (0)