fix(ivy): make exported pipes available in module scope (#27438)

This is tested in the Ivy CLI integration test.

PR Close #27438
This commit is contained in:
JoostK 2018-12-03 22:16:31 +01:00 committed by Miško Hevery
parent 11600255fb
commit 84084b1bdb

View File

@ -253,7 +253,7 @@ export function transitiveScopesFor<T>(moduleType: Type<T>): NgModuleTransitiveS
scopes.compilation.pipes.add(entry); scopes.compilation.pipes.add(entry);
scopes.exported.pipes.add(entry); scopes.exported.pipes.add(entry);
}); });
} else if (getNgModuleDef(exportedTyped)) { } else if (getPipeDef(exportedTyped)) {
scopes.exported.pipes.add(exportedTyped); scopes.exported.pipes.add(exportedTyped);
} else { } else {
scopes.exported.directives.add(exportedTyped); scopes.exported.directives.add(exportedTyped);