refactor(compiler-cli): implement BabelAstFactory and AstHosts (#38866)

This commit adds the `AstHost` interface, along with implementations for
both Babel and TS.

It also implements the Babel vesion of the `AstFactory` interface, along
with a linker specific implementation of the `ImportGenerator` interface.

These classes will be used by the new "ng-linker" to transform prelinked
library code using a Babel plugin.

PR Close #38866
This commit is contained in:
Pete Bacon Darwin
2020-09-16 11:19:56 +01:00
committed by Joey Perrott
parent 1f5d7dc394
commit 7dd0db6d4f
20 changed files with 1746 additions and 4 deletions
+1
View File
@@ -47,6 +47,7 @@ merge:
- "packages/bazel/src/ng_package/**"
- "packages/bazel/src/protractor/**"
- "packages/bazel/src/schematics/**"
- "packages/compiler-cli/linker/**"
- "packages/compiler-cli/ngcc/**"
- "packages/compiler-cli/src/ngtsc/sourcemaps/**"
- "packages/docs/**"