Skip to content

Commit

Permalink
refactor(compiler-cli): remove circular dep in the partial evaluator (a…
Browse files Browse the repository at this point in the history
…ngular#59083)

Use `import type` to break a phantom import cycle.

PR Close angular#59083
  • Loading branch information
alxhub committed Dec 6, 2024
1 parent 8780399 commit 2e907ea
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions goldens/circular-deps/packages.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
[
[
"packages/compiler-cli/src/ngtsc/partial_evaluator/src/interface.ts",
"packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.ts"
],
[
"packages/compiler/src/output/output_ast.ts",
"packages/compiler/src/render3/view/i18n/meta.ts"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {isDeclaration} from '../../util/src/typescript';

import {ArrayConcatBuiltinFn, ArraySliceBuiltinFn, StringConcatBuiltinFn} from './builtin';
import {DynamicValue} from './dynamic';
import {ForeignFunctionResolver} from './interface';
import type {ForeignFunctionResolver} from './interface';
import {
EnumValue,
KnownFn,
Expand Down

0 comments on commit 2e907ea

Please sign in to comment.