fix(ivy): take preserveWhitespaces config option into account (FW-650) (#27197)

PR Close #27197
This commit is contained in:
Andrew Kushnir
2018-11-20 10:51:16 -08:00
committed by Jason Aden
parent 9e391e010c
commit d819c00fee
5 changed files with 47 additions and 5 deletions

View File

@ -219,7 +219,8 @@ export class NgtscProgram implements api.Program {
const handlers = [
new BaseDefDecoratorHandler(checker, this.reflector),
new ComponentDecoratorHandler(
checker, this.reflector, scopeRegistry, this.isCore, this.resourceLoader, this.rootDirs),
checker, this.reflector, scopeRegistry, this.isCore, this.resourceLoader, this.rootDirs,
this.options.preserveWhitespaces || false),
new DirectiveDecoratorHandler(checker, this.reflector, scopeRegistry, this.isCore),
new InjectableDecoratorHandler(this.reflector, this.isCore),
new NgModuleDecoratorHandler(checker, this.reflector, scopeRegistry, this.isCore),