fix(compiler): generate correct imports for type check blocks (#19582)

Fixes: #19485

PR Close #19582
This commit is contained in:
Chuck Jazdzewski
2017-10-05 14:36:15 -07:00
committed by Tobias Bosch
parent d035175cdb
commit 60bdcd6f5f
3 changed files with 51 additions and 22 deletions

View File

@ -204,8 +204,8 @@ export class AotCompiler {
// and they also cause TypeScript to include these files into the program too,
// which will make them part of the analyzedFiles.
const externalReferences: StaticSymbol[] = [
...ngModuleMeta.declaredDirectives.map(d => d.reference),
...ngModuleMeta.declaredPipes.map(d => d.reference),
...ngModuleMeta.transitiveModule.directives.map(d => d.reference),
...ngModuleMeta.transitiveModule.pipes.map(d => d.reference),
...ngModuleMeta.importedModules.map(m => m.type.reference),
...ngModuleMeta.exportedModules.map(m => m.type.reference),
];