eeecbf28e4
Currently the migration is unable to migrate instances where the provider definition uses `forwardRef`. Since this is a common pattern, we should support that from within the migration. The solution to the problem is adding a foreign function resolver to the `PartialEvaluator`. This basically matches the usage of the static evaluation that is used by the ngtsc annotations. PR Close #33286
24 lines
846 B
Python
24 lines
846 B
Python
load("//tools:defaults.bzl", "ts_library")
|
|
|
|
ts_library(
|
|
name = "missing-injectable",
|
|
srcs = glob(["**/*.ts"]),
|
|
tsconfig = "//packages/core/schematics:tsconfig.json",
|
|
visibility = [
|
|
"//packages/core/schematics:__pkg__",
|
|
"//packages/core/schematics/migrations/google3:__pkg__",
|
|
"//packages/core/schematics/migrations/missing-injectable/google3:__pkg__",
|
|
"//packages/core/schematics/test:__pkg__",
|
|
],
|
|
deps = [
|
|
"//packages/compiler-cli/src/ngtsc/annotations",
|
|
"//packages/compiler-cli/src/ngtsc/imports",
|
|
"//packages/compiler-cli/src/ngtsc/partial_evaluator",
|
|
"//packages/compiler-cli/src/ngtsc/reflection",
|
|
"//packages/core/schematics/utils",
|
|
"@npm//@angular-devkit/schematics",
|
|
"@npm//@types/node",
|
|
"@npm//typescript",
|
|
],
|
|
)
|